shithub: drawterm

ref: 6c4be825d2f7c5f2c1a8c01f97b0c4cbec6b8aa3
dir: /libc/time.c/

View raw version
#include <u.h>
#include <libc.h>

long
time(long *tp)
{
	vlong t;

	t = nsec()/1000000000LL;
	if(tp != nil)
		*tp = t;
	return t;
}