summaryrefslogtreecommitdiff
path: root/sys/src/libc/9sys/time.c
blob: 23ef3d1bae00f5baa89c0685b1778e0931e69f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <u.h>
#include <libc.h>

long
time(long *tp)
{
	vlong t;

	t = nsec()/1000000000LL;
	if(tp != nil)
		*tp = t;
	return t;
}