shithub: drawterm

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