Fixed tracker #52

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@228 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bxing 2006-05-22 08:04:47 +00:00
parent 267f7f10ec
commit b3ccb7ef12

View File

@ -25,18 +25,18 @@ DelayWorker (
IN UINT64 NDelay IN UINT64 NDelay
) )
{ {
UINTN Ticks; UINT64 Ticks;
Ticks = (UINTN)GetPerformanceCounter (); Ticks = GetPerformanceCounter ();
Ticks -= (UINTN)DivU64x32 ( Ticks -= DivU64x32 (
MultU64x64 ( MultU64x64 (
GetPerformanceCounterProperties (NULL, NULL), GetPerformanceCounterProperties (NULL, NULL),
NDelay NDelay
), ),
1000000000u 1000000000u
); );
while (Ticks >= GetPerformanceCounter ()); while (Ticks <= GetPerformanceCounter ());
return Ticks; return (UINTN)Ticks;
} }
/** /**