mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
321bcc056d
svn path=/branches/GSoC_2016/AHCI/; revision=71203
36 lines
694 B
C
36 lines
694 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* PURPOSE: GDI Driver Performance Counter Functions
|
|
* FILE: win32ss/gdi/eng/perfcnt.c
|
|
* PROGRAMER: Ge van Geldorp
|
|
*/
|
|
|
|
#include <win32k.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID APIENTRY
|
|
EngQueryPerformanceFrequency(LONGLONG *Frequency)
|
|
{
|
|
LARGE_INTEGER Freq;
|
|
|
|
KeQueryPerformanceCounter(&Freq);
|
|
*Frequency = Freq.QuadPart;
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID APIENTRY
|
|
EngQueryPerformanceCounter(LONGLONG *Count)
|
|
{
|
|
LARGE_INTEGER PerfCount;
|
|
|
|
PerfCount = KeQueryPerformanceCounter(NULL);
|
|
*Count = PerfCount.QuadPart;
|
|
}
|