ReactOS
0.4.16-dev-320-g3bd9ddc
GetTickCount64.c
Go to the documentation of this file.
1
2
#include "
k32_vista.h
"
3
4
/*
5
* @implemented
6
*/
7
ULONGLONG
8
WINAPI
9
GetTickCount64
(
VOID
)
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
20
YieldProcessor
();
21
}
22
23
return
(
UInt32x32To64
(TickCount.
LowPart
,
SharedUserData
->TickCountMultiplier) >> 24) +
24
(
UInt32x32To64
(TickCount.
HighPart
,
SharedUserData
->TickCountMultiplier) << 8);
25
}
GetTickCount64
ULONGLONG WINAPI GetTickCount64(VOID)
Definition:
GetTickCount64.c:9
TRUE
#define TRUE
Definition:
types.h:120
void
Definition:
nsiface.idl:2307
UInt32x32To64
#define UInt32x32To64(a, b)
Definition:
intsafe.h:252
k32_vista.h
if
if(dx< 0)
Definition:
linetemp.h:194
YieldProcessor
#define YieldProcessor
Definition:
ke.h:48
SharedUserData
#define SharedUserData
_ULARGE_INTEGER
Definition:
ms-dtyp.idl:184
_ULARGE_INTEGER::LowPart
$ULONG LowPart
Definition:
ntbasedef.h:577
_ULARGE_INTEGER::HighPart
$ULONG HighPart
Definition:
ntbasedef.h:578
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
ULONGLONG
uint64_t ULONGLONG
Definition:
typedefs.h:67
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
kernel32
kernel32_vista
GetTickCount64.c
Generated on Thu Dec 5 2024 06:10:27 for ReactOS by
1.9.6