Fxied tracker #54 & #55

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@229 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bxing 2006-05-22 08:10:42 +00:00
parent b3ccb7ef12
commit b544966b27
1 changed files with 2 additions and 2 deletions

View File

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