ack/mach/vax4/libbsd4_2/time.c

13 lines
157 B
C
Raw Permalink Normal View History

1987-02-23 18:58:58 +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;
}