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

Function __noinline evaluateDelegate

samples/Basic_Delegates/app/speed.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static void __noinline evaluateDelegate(const char* name, TestDelegate delegate, int testParam)
36{
37 timer.start();
38 for(unsigned i = 0; i < ITERATIONS; ++i) {
39 delegate(testParam);
40 }
41 unsigned ticks = timer.elapsedTicks();
42 printTime(name, ticks / ITERATIONS);
43}
44
45void evaluateSpeed()
46{

Callers

nothing calls this directly

Calls 3

printTimeFunction · 0.85
elapsedTicksMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected