ReactOS  0.4.15-dev-2701-g34593d9
perfcnt.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * PURPOSE: GDI Driver Performance Counter Functions
5  * FILE: win32ss/gdi/eng/perfcnt.c
6  * PROGRAMER: Ge van Geldorp
7  */
8 
9 #include <win32k.h>
10 
11 #define NDEBUG
12 #include <debug.h>
13 
14 /*
15  * @implemented
16  */
19 {
21 
23  *Frequency = Freq.QuadPart;
24 }
25 
26 /*
27  * @implemented
28  */
31 {
32  LARGE_INTEGER PerfCount;
33 
34  PerfCount = KeQueryPerformanceCounter(NULL);
35  *Count = PerfCount.QuadPart;
36 }
VOID APIENTRY EngQueryPerformanceFrequency(LONGLONG *Frequency)
Definition: perfcnt.c:18
LARGE_INTEGER NTAPI KeQueryPerformanceCounter(IN PLARGE_INTEGER PerformanceFreq)
Definition: timer.c:138
VOID APIENTRY EngQueryPerformanceCounter(LONGLONG *Count)
Definition: perfcnt.c:30
int64_t LONGLONG
Definition: typedefs.h:68
int Count
Definition: noreturn.cpp:7
#define Freq
Definition: deflate.h:79
#define NULL
Definition: types.h:112
static LARGE_INTEGER Frequency
Definition: clock.c:41
#define APIENTRY
Definition: api.h:79
LONGLONG QuadPart
Definition: typedefs.h:114