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>
This commit is contained in:
Jeff Smith 2017-12-26 22:10:52 -06:00 committed by Adam Jackson
parent 94e7ca6a56
commit 510e7d0d86

View File

@ -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