#include "GetTime.h" GetTime GetTime::I; GetTime::GetTime() { // For some reason this fails in the constructor // QueryPerformanceFrequency(&yo); // counts = yo.QuadPart >> 10; } void GetTime::Init(void) { QueryPerformanceFrequency(&yo); counts = yo.QuadPart >> 10; }