mirror of
https://github.com/reactos/reactos.git
synced 2024-11-24 12:03:31 +08:00
26 lines
584 B
C
26 lines
584 B
C
|
|
#include "k32_vista.h"
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
ULONGLONG
|
|
WINAPI
|
|
GetTickCount64(VOID)
|
|
{
|
|
ULARGE_INTEGER TickCount;
|
|
|
|
while (TRUE)
|
|
{
|
|
TickCount.HighPart = (ULONG)SharedUserData->TickCount.High1Time;
|
|
TickCount.LowPart = SharedUserData->TickCount.LowPart;
|
|
|
|
if (TickCount.HighPart == (ULONG)SharedUserData->TickCount.High2Time) break;
|
|
|
|
YieldProcessor();
|
|
}
|
|
|
|
return (UInt32x32To64(TickCount.LowPart, SharedUserData->TickCountMultiplier) >> 24) +
|
|
(UInt32x32To64(TickCount.HighPart, SharedUserData->TickCountMultiplier) << 8);
|
|
}
|