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