diff options
author | Jeff Smith <whydoubt@gmail.com> | 2017-12-26 22:10:52 -0600 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-01-31 16:02:39 -0500 |
commit | 510e7d0d869dcc008b1e11e21961f2c1c3cb9cd3 (patch) | |
tree | c2f6bf066648b5fecda497a34a99ae4a6f2575cb /os | |
parent | 94e7ca6a5667eeb13c078496a07d3e6cf1ec95cc (diff) |
os: Always return microseconds from GetTimeInMicros()
When a monotonic clock is not available, GetTimeInMicros() returns the
time in nanoseconds. Instead, return the time in microseconds, as the
name indicates.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'os')
-rw-r--r-- | os/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/utils.c b/os/utils.c index 8a758f0b9..4a8d1249f 100644 --- a/os/utils.c +++ b/os/utils.c @@ -497,7 +497,7 @@ GetTimeInMicros(void) #endif X_GETTIMEOFDAY(&tv); - return (CARD64) tv.tv_sec * (CARD64)1000000000 + (CARD64) tv.tv_usec * 1000; + return (CARD64) tv.tv_sec * (CARD64)1000000 + (CARD64) tv.tv_usec; } #endif |