/* Written by Kris Maglione */ /* Public domain */ #include "util.h" #include uvlong nsec(void) { struct timeval tv; gettimeofday(&tv, nil); return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000; }