ref: c9f4e6f1cfa96e6a12b23801e16f8e0fe36a266d dir: /libc/time.c/
#include <u.h> #include <libc.h> long time(long *tp) { vlong t; t = nsec()/1000000000LL; if(tp != nil) *tp = t; return t; }