M2_SETI/A4/TP_GPU-master/TP2_reduction/windows/CpuTimer.cpp

7 lines
260 B
C++
Raw Permalink Normal View History

2022-12-09 09:03:22 +01:00
#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();