M2_SETI/A4/TP_GPU-master/TP2_reduction/windows/CpuTimer.cpp
2022-12-09 09:03:22 +01:00

7 lines
No EOL
260 B
C++

#include "CpuTimer.h"
// Initialize the resolution of the timer
LARGE_INTEGER CpuTimer::m_freq = (QueryPerformanceFrequency(&CpuTimer::m_freq), CpuTimer::m_freq);
// Calculate the overhead of the timer
LONGLONG CpuTimer::m_overhead = CpuTimer::GetOverhead();