time, nsec - time in seconds and nanoseconds since epoch
long time(long *tp)
Both time and nsec return the time since the epoch 00:00:00 GMT, Jan.
1, 1970. The return value of the former is in seconds and the latter
in nanoseconds. For time, if tp is not zero then *tp is also set to
Times from time should be stored in and treated as ulongs; this extends
the range of valid times into the year 2106.
These functions work by reading /dev/bintime, opening that file when
they are first called.
SEE ALSOcputime(2), cons(3)DIAGNOSTICS
These routines maintain a static file descriptor.