clock: fix usec-to-usec factor
This commit is contained in:

committed by
Max Kellermann

parent
28a60db5aa
commit
2cf31e905b
@@ -92,7 +92,7 @@ monotonic_clock_us(void)
|
|||||||
/* we have no monotonic clock, fall back to gettimeofday() */
|
/* we have no monotonic clock, fall back to gettimeofday() */
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, 0);
|
gettimeofday(&tv, 0);
|
||||||
return (uint64_t)tv.tv_sec * 1000 + (uint64_t)(tv.tv_usec) / 1000(;
|
return (uint64_t)tv.tv_sec * 1000 + (uint64_t)tv.tv_usec;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user