2014-05-01 09:48:40 +00:00
|
|
|
/*
|
2003-06-19 17:13:28 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
|
|
|
* PURPOSE: GDI Driver Performance Counter Functions
|
2015-11-10 17:41:55 +00:00
|
|
|
* FILE: win32ss/gdi/eng/perfcnt.c
|
2003-06-19 17:13:28 +00:00
|
|
|
* PROGRAMER: Ge van Geldorp
|
|
|
|
*/
|
2005-06-29 07:09:25 +00:00
|
|
|
|
2010-04-26 13:58:46 +00:00
|
|
|
#include <win32k.h>
|
2003-06-19 17:13:28 +00:00
|
|
|
|
2005-06-29 07:09:25 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
2003-07-11 15:59:37 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2008-11-29 22:48:58 +00:00
|
|
|
VOID APIENTRY
|
2003-06-19 17:13:28 +00:00
|
|
|
EngQueryPerformanceFrequency(LONGLONG *Frequency)
|
|
|
|
{
|
2014-05-01 09:48:40 +00:00
|
|
|
LARGE_INTEGER Freq;
|
2003-06-19 17:13:28 +00:00
|
|
|
|
2014-05-01 09:48:40 +00:00
|
|
|
KeQueryPerformanceCounter(&Freq);
|
|
|
|
*Frequency = Freq.QuadPart;
|
2003-06-19 17:13:28 +00:00
|
|
|
}
|
|
|
|
|
2003-07-11 15:59:37 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2008-11-29 22:48:58 +00:00
|
|
|
VOID APIENTRY
|
2003-06-19 17:13:28 +00:00
|
|
|
EngQueryPerformanceCounter(LONGLONG *Count)
|
|
|
|
{
|
2014-05-01 09:48:40 +00:00
|
|
|
LARGE_INTEGER PerfCount;
|
2003-06-19 17:13:28 +00:00
|
|
|
|
2014-05-01 09:48:40 +00:00
|
|
|
PerfCount = KeQueryPerformanceCounter(NULL);
|
|
|
|
*Count = PerfCount.QuadPart;
|
2003-06-19 17:13:28 +00:00
|
|
|
}
|