mirror of https://github.com/acidanthera/audk.git
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 ();
|
Ticks = GetPerformanceCounter ();
|
||||||
Delay = GetPerformanceCounterProperties (NULL, NULL) * MicroSeconds / 1000000;
|
Delay = GetPerformanceCounterProperties (NULL, NULL) * MicroSeconds / 1000000;
|
||||||
while (Ticks + Delay < GetPerformanceCounter ());
|
while (Ticks + Delay >= GetPerformanceCounter ());
|
||||||
return (UINTN)Delay;
|
return (UINTN)Delay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ NanoSecondDelay (
|
||||||
|
|
||||||
Ticks = GetPerformanceCounter ();
|
Ticks = GetPerformanceCounter ();
|
||||||
Delay = GetPerformanceCounterProperties (NULL, NULL) * NanoSeconds / 1000000000;
|
Delay = GetPerformanceCounterProperties (NULL, NULL) * NanoSeconds / 1000000000;
|
||||||
while (Ticks + Delay < GetPerformanceCounter ());
|
while (Ticks + Delay >= GetPerformanceCounter ());
|
||||||
return (UINTN)Delay;
|
return (UINTN)Delay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue