shithub: drawterm

ref: 0f3766f44e554d73c7a3d8bab55cc32dc13f1c26

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;
}