27 #include "precompiled.h"
47 virtual const wchar_t*
Name()
const
57 LARGE_INTEGER qpcFreq, qpcValue;
58 const BOOL ok1 = QueryPerformanceFrequency(&qpcFreq);
59 const BOOL ok2 = QueryPerformanceCounter(&qpcValue);
62 if(!qpcFreq.QuadPart || !qpcValue.QuadPart)
123 LARGE_INTEGER qpc_value;
124 (void)QueryPerformanceCounter(&qpc_value);
125 return qpc_value.QuadPart;
static const i64 PMT_FREQ
double os_cpu_ClockFrequency()
virtual const wchar_t * Name() const
ICounter * CreateCounterQPC(void *address, size_t size)
size_t CounterBits() const
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
bool IsSimilarMagnitude(double d1, double d2, const double relativeErrorTolerance=0.05)
i64 Status
Error handling system.
static const i64 PIT_FREQ
#define WARN_RETURN(status)
bool wutil_HasCommandLineArgument(const wchar_t *arg)
double Resolution() const
actual resolution [s].
double NominalFrequency() const
initial measurement of the tick rate.