ReactOS
0.4.16-dev-117-g38f21f9
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
*/
17
VOID
APIENTRY
18
EngQueryPerformanceFrequency
(
LONGLONG
*
Frequency
)
19
{
20
LARGE_INTEGER
Freq
;
21
22
KeQueryPerformanceCounter
(&
Freq
);
23
*
Frequency
=
Freq
.QuadPart;
24
}
25
26
/*
27
* @implemented
28
*/
29
VOID
APIENTRY
30
EngQueryPerformanceCounter
(
LONGLONG
*
Count
)
31
{
32
LARGE_INTEGER
PerfCount;
33
34
PerfCount =
KeQueryPerformanceCounter
(
NULL
);
35
*
Count
= PerfCount.
QuadPart
;
36
}
Freq
#define Freq
Definition:
deflate.h:79
NULL
#define NULL
Definition:
types.h:112
APIENTRY
#define APIENTRY
Definition:
api.h:79
KeQueryPerformanceCounter
LARGE_INTEGER NTAPI KeQueryPerformanceCounter(IN PLARGE_INTEGER PerformanceFreq)
Definition:
timer.c:138
void
Definition:
nsiface.idl:2307
Count
int Count
Definition:
noreturn.cpp:7
Frequency
static LARGE_INTEGER Frequency
Definition:
clock.c:41
LONGLONG
int64_t LONGLONG
Definition:
typedefs.h:68
_LARGE_INTEGER
Definition:
typedefs.h:103
_LARGE_INTEGER::QuadPart
LONGLONG QuadPart
Definition:
typedefs.h:114
win32k.h
EngQueryPerformanceFrequency
VOID APIENTRY EngQueryPerformanceFrequency(LONGLONG *Frequency)
Definition:
perfcnt.c:18
EngQueryPerformanceCounter
VOID APIENTRY EngQueryPerformanceCounter(LONGLONG *Count)
Definition:
perfcnt.c:30
win32ss
gdi
eng
perfcnt.c
Generated on Fri Oct 11 2024 06:14:29 for ReactOS by
1.9.6