code: drawterm

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