shithub: riscv

ref: 8f44d1f6e8a47395c2ebd9b6899f1b8dc94a9b3f
dir: /sys/src/libc/9sys/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;
}