shithub: drawterm

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