mirror of
https://git.tukaani.org/xz.git
synced 2025-03-31 21:00:55 +00:00
Fix microsecond vs. nanosecond confusion in my_time().
This commit is contained in:
parent
3084d662d2
commit
11ae4ae35f
@ -144,7 +144,7 @@ my_time(void)
|
|||||||
if (gettimeofday(&tv, NULL))
|
if (gettimeofday(&tv, NULL))
|
||||||
return -1.0;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user