ref: 51d5a41b3f09a15fef2f427a129f877365d10bf6
dir: /libstd/now.myr/
use "sys.use" use "types.use" use "fmt.use" pkg std = const now : (-> time) ;; /* microseconds since epoch */ const now = { var tm var sec var nsec if clock_gettime(`Clockrealtime, &tm) == 0 sec = tm.sec nsec = tm.nsec castto(uint64) -> (sec*1_000_000 + nsec/1000) castto(time) else -> -1 ;; }