ReactOS  0.4.14-dev-50-g13bb5e2
GetTickCount64.c
Go to the documentation of this file.
1 
2 #include "k32_vista.h"
3 
4 /*
5  * @implemented
6  */
8 WINAPI
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 }
#define TRUE
Definition: types.h:120
$ULONG LowPart
Definition: ntbasedef.h:576
ULONGLONG WINAPI GetTickCount64(VOID)
Definition: GetTickCount64.c:9
FORCEINLINE VOID YieldProcessor(VOID)
Definition: ke.h:32
$ULONG HighPart
Definition: ntbasedef.h:577
if(!(yy_init))
Definition: macro.lex.yy.c:714
uint64_t ULONGLONG
Definition: typedefs.h:65
#define WINAPI
Definition: msvc.h:8
#define SharedUserData
unsigned int ULONG
Definition: retypes.h:1
#define UInt32x32To64(a, b)
Definition: intsafe.h:258