Blob
1 .TH TIME 32 .SH NAME3 time, nsec \- time in seconds and nanoseconds since epoch4 .SH SYNOPSIS5 .B #include <u.h>6 .br7 .B #include <libc.h>8 .PP9 .nf10 .B11 long time(long *tp)12 .PP13 .B14 vlong nsec(void)15 .SH DESCRIPTION16 Both17 .I time18 and19 .I nsec20 return the time since the epoch 00:00:00 GMT, Jan. 1, 1970.21 The return value of the former is in seconds and the latter in nanoseconds.22 For23 .IR time ,24 if25 .I tp26 is not zero then27 .BI * tp28 is also set to the answer.29 .SH SOURCE30 .B \*9/src/lib9/time.c31 .SH DIAGNOSTICS32 These functions set33 .IR errstr .34 .SH BUGS35 To avoid name conflicts with the underlying system,36 .I time37 and38 .I nsec39 are preprocessor macros defined as40 .I p9time41 and42 .IR p9nsec ;43 see44 .IR intro (3).