ack/mach/sparc/libsys/time.c

13 lines
157 B
C
Raw Normal View History

1991-09-20 18:14:05 +00:00
long
time(loc)
long *loc;
{
struct { long l1,l2; } t1;
if (gettimeofday(&t1, (char *) 0) < 0) {
return -1;
}
if (loc) *loc = t1.l1;
return t1.l1;
}