[libstuff] Fix nsec().

This commit is contained in:
Kris Maglione 2010-06-04 18:15:11 -04:00
parent 6639d9d02f
commit abefbf048d
2 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,6 @@ nsec(void) {
struct timeval tv;
gettimeofday(&tv, nil);
return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_sec * 1000;
return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000;
}