shithub: drawterm

ref: 05dc356d2fb9d72405b0b2d0b36505f729d8591c
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;
}