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

Function timerprint

samples/dcraw_emu.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163static struct timeval start, end;
164void timerstart(void) { gettimeofday(&start, NULL); }
165void timerprint(const char *msg, const char *filename)
166{
167 gettimeofday(&end, NULL);
168 float msec = (end.tv_sec - start.tv_sec) * 1000.0f +
169 (end.tv_usec - start.tv_usec) / 1000.0f;
170 printf("Timing: %s/%s: %6.3f msec\n", filename, msg, msec);
171}
172#else
173LARGE_INTEGER start;
174void timerstart(void) { QueryPerformanceCounter(&start); }

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected