clock: fix usec-to-usec factor
This commit is contained in:
parent
28a60db5aa
commit
2cf31e905b
|
@ -92,7 +92,7 @@ monotonic_clock_us(void)
|
|||
/* we have no monotonic clock, fall back to gettimeofday() */
|
||||
struct timeval tv;
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue