mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@229 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b3ccb7ef12
commit
b544966b27
@ -59,7 +59,7 @@ MicroSecondDelay (
|
||||
|
||||
Ticks = GetPerformanceCounter ();
|
||||
Delay = GetPerformanceCounterProperties (NULL, NULL) * MicroSeconds / 1000000;
|
||||
while (Ticks + Delay < GetPerformanceCounter ());
|
||||
while (Ticks + Delay >= GetPerformanceCounter ());
|
||||
return (UINTN)Delay;
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ NanoSecondDelay (
|
||||
|
||||
Ticks = GetPerformanceCounter ();
|
||||
Delay = GetPerformanceCounterProperties (NULL, NULL) * NanoSeconds / 1000000000;
|
||||
while (Ticks + Delay < GetPerformanceCounter ());
|
||||
while (Ticks + Delay >= GetPerformanceCounter ());
|
||||
return (UINTN)Delay;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user