MCPcopy Create free account
hub / github.com/LibRaw/LibRaw / timerend

Function timerend

samples/postprocessing_benchmark.cpp:203–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201static struct timeval start, end;
202void timerstart(void) { gettimeofday(&start, NULL); }
203float timerend(void)
204{
205 gettimeofday(&end, NULL);
206 float msec = (end.tv_sec - start.tv_sec) * 1000.0f +
207 (end.tv_usec - start.tv_usec) / 1000.0f;
208 return msec;
209}
210#else
211LARGE_INTEGER start;
212void timerstart(void) { QueryPerformanceCounter(&start); }

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected