ReactOS 0.4.16-dev-197-g92996da
GetTickCount64.c
Go to the documentation of this file.
1
2#include "k32_vista.h"
3
4/*
5 * @implemented
6 */
10{
11 ULARGE_INTEGER TickCount;
12
13 while (TRUE)
14 {
15 TickCount.HighPart = (ULONG)SharedUserData->TickCount.High1Time;
16 TickCount.LowPart = SharedUserData->TickCount.LowPart;
17
18 if (TickCount.HighPart == (ULONG)SharedUserData->TickCount.High2Time) break;
19
21 }
22
23 return (UInt32x32To64(TickCount.LowPart, SharedUserData->TickCountMultiplier) >> 24) +
24 (UInt32x32To64(TickCount.HighPart, SharedUserData->TickCountMultiplier) << 8);
25}
ULONGLONG WINAPI GetTickCount64(VOID)
Definition: GetTickCount64.c:9
#define TRUE
Definition: types.h:120
#define UInt32x32To64(a, b)
Definition: intsafe.h:252
if(dx< 0)
Definition: linetemp.h:194
#define YieldProcessor
Definition: ke.h:48
#define SharedUserData
$ULONG LowPart
Definition: ntbasedef.h:569
$ULONG HighPart
Definition: ntbasedef.h:570
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
#define WINAPI
Definition: msvc.h:6