MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / HighResolutionCounter

Method HighResolutionCounter

Libraries/Time/Time.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119SC::Time::HighResolutionCounter::HighResolutionCounter()
120{
121 part1 = 0;
122#if SC_PLATFORM_WINDOWS
123 LARGE_INTEGER queryPerformanceFrequency;
124 // Since WinXP this is guaranteed to succeed
125 QueryPerformanceFrequency(&queryPerformanceFrequency);
126 part2 = queryPerformanceFrequency.QuadPart;
127#else
128 part2 = 0;
129#endif
130}
131
132SC::Time::HighResolutionCounter& SC::Time::HighResolutionCounter::snap()
133{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected