ref: a8472c1d56c5663f7c4c97e172da84bbc6959cdd 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; }