ReactOS  0.4.13-dev-249-gcba1a2f
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
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
smooth NULL
Definition: ftsmooth.c:416
int64_t LONGLONG
Definition: typedefs.h:66
#define Freq
Definition: deflate.h:79
static LARGE_INTEGER Frequency
Definition: clock.c:41
#define APIENTRY
Definition: api.h:79
LONGLONG QuadPart
Definition: typedefs.h:112