2 * time - return the current calendar time (seconds since jan 1, 1970)
4 /* $Id: time.c,v 1.4 1994/06/24 11:58:26 ceriel Exp $ */
9 * Structure returned by gettimeofday(2) system call,
10 * and used in other calls.
13 long tv_sec; /* seconds */
14 long tv_usec; /* and microseconds */
18 int tz_minuteswest; /* minutes west of Greenwich */
19 int tz_dsttime; /* type of dst correction */
22 int _gettimeofday(struct timeval *tp, struct timezone *tzp);
29 _gettimeofday(&tv, &tz);
31 if (timer) *timer = tv.tv_sec;
35 /* Assume time() is a system call */ /* ??? */