MCPcopy Create free account
hub / github.com/SmingHub/Sming / __noinline evaluateCallback

Function __noinline evaluateCallback

samples/Basic_Delegates/app/speed.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static void __noinline evaluateCallback(const char* name, TestCallback callback, int testParam)
26{
27 timer.start();
28 for(unsigned i = 0; i < ITERATIONS; ++i) {
29 callback(testParam);
30 }
31 unsigned ticks = timer.elapsedTicks();
32 printTime(name, ticks / ITERATIONS);
33}
34
35static void __noinline evaluateDelegate(const char* name, TestDelegate delegate, int testParam)
36{

Callers

nothing calls this directly

Calls 3

printTimeFunction · 0.85
elapsedTicksMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected