Artifact f61a47c3590af914471c79dc40080f48798ce55c5cb1496a64486eef47351ae1:
- File lib/libstuff/util/nsec.c — part of check-in [15eae1e8e6] at 2019-06-20 16:42:23 on branch trunk — Import sources to have something to work with (user: KhazAkar size: 251)
/* Written by Kris Maglione <maglione.k at Gmail> */ /* Public domain */ #include "util.h" #include <sys/time.h> uvlong nsec(void) { struct timeval tv; gettimeofday(&tv, nil); return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000; }