mirror of
https://github.com/acpica/acpica/
synced 2025-03-01 03:44:24 +03:00
Fix timer implementation
date 2004.09.30.18.15.00; author rmoore1; state Exp;
This commit is contained in:
parent
2fb517e167
commit
4963227967
@ -847,7 +847,9 @@ AcpiOsGetTimer (void)
|
||||
|
||||
gettimeofday(&time, NULL);
|
||||
|
||||
return (((UINT64)(time.tv_sec/1000) + (time.tv_usec*1000)) * 10000);
|
||||
/* Seconds * 10^7 = 100ns(10^-7), Microseconds(10^-6) * 10^1 = 100ns */
|
||||
|
||||
return (((UINT64) time.tv_sec * 10000000) + ((UINT64) time.tv_usec * 10));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user