#include <9pm/u.h> #include <9pm/libc.h> ulong msec(void) { static vlong first; if(first == 0) first = nsec(); return (nsec()-first)/1000000; }