ReactOS 0.4.16-dev-122-g325d74c
perfcnt.c File Reference
#include <k32.h>
#include <debug.h>
Include dependency graph for perfcnt.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL WINAPI QueryPerformanceCounter (OUT PLARGE_INTEGER lpPerformanceCount)
 
BOOL WINAPI QueryPerformanceFrequency (OUT PLARGE_INTEGER lpFrequency)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file perfcnt.c.

Function Documentation

◆ QueryPerformanceCounter()

BOOL WINAPI QueryPerformanceCounter ( OUT PLARGE_INTEGER  lpPerformanceCount)

Definition at line 23 of file perfcnt.c.

24{
27
28 Status = NtQueryPerformanceCounter(lpPerformanceCount, &Frequency);
30
31 if (!NT_SUCCESS(Status))
32 {
34 return FALSE;
35 }
36
37 return TRUE;
38}
LONG NTSTATUS
Definition: precomp.h:26
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
Status
Definition: gdiplustypes.h:25
NTSTATUS NTAPI NtQueryPerformanceCounter(OUT PLARGE_INTEGER PerformanceCounter, OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL)
Definition: profile.c:272
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:239
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:167
static LARGE_INTEGER Frequency
Definition: clock.c:41
LONGLONG QuadPart
Definition: typedefs.h:114

Referenced by __security_init_cookie(), CookupNodeId(), currenttime_us(), DwmGetCompositionTimingInfo(), GetPerfTime(), GetSecondsQPC(), GetTickCountQPC(), main(), master_IReferenceClock_GetTime(), QueryTime(), Timer::restart(), Timer::start(), Timer::stop(), SystemFunction036(), test_clock(), test_RegQueryValueExPerformanceData(), timeGetTime(), and wined3d_get_adapter_raster_status().

◆ QueryPerformanceFrequency()