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:
parent
94e7ca6a56
commit
510e7d0d86
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user