MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / Timer

Class Timer

src/callback-client/client.h:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90#ifdef WIN32
91
92struct Timer
93{
94 LARGE_INTEGER start, stop, freq;
95
96public:
97 Timer() { QueryPerformanceFrequency( &freq ); }
98
99 void Start() { QueryPerformanceCounter(&start); }
100 double Sample()
101 {
102 QueryPerformanceCounter ( &stop );
103 double time = (double)(stop.QuadPart-start.QuadPart) / (double)(freq.QuadPart);
104 return time;
105 }
106};
107
108#elif defined(__APPLE__) || defined(__MACOSX)
109

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected