Fix microsecond vs. nanosecond confusion in my_time().

This commit is contained in:
Lasse Collin 2009-02-14 20:44:52 +02:00
parent 3084d662d2
commit 11ae4ae35f
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ my_time(void)
if (gettimeofday(&tv, NULL))
return -1.0;
return (double)(tv.tv_sec) + (double)(tv.tv_usec) / 1.0e9;
return (double)(tv.tv_sec) + (double)(tv.tv_usec) / 1.0e6;
}