/* time.h 4.2 83/05/21 */
* Structure returned by gettimeofday(2) system call,
* and used in other calls.
long tv_sec
; /* seconds */
long tv_usec
; /* and microseconds */
int tz_minuteswest
; /* minutes west of Greenwich */
int tz_dsttime
; /* type of dst correction */
#define DST_NONE 0 /* not on dst */
#define DST_USA 1 /* usa style dst */
#define DST_AUST 2 /* Australian style dst */
* Operations on timevals.
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timercmp(tvp, uvp, cmp) \
((tvp)->tv_sec cmp (uvp)->tv_sec || \
(tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
* Names of the interval timers, and structure
* defining a timer setting.
struct timeval it_interval
; /* timer interval */
struct timeval it_value
; /* current value */
* Structure returned by gmtime and localtime calls (see ctime(3)).
extern struct tm
*gmtime(), *localtime();
extern char *asctime(), *ctime();