MCPcopy Create free account
hub / github.com/Genivia/RE-flex / timer

Function timer

tests/lorem.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void timer(const char *text = NULL)
34{
35 static timer_type t;
36 if (text)
37 {
38 float ms = timer_elapsed(t);
39 printf("%s %g micro seconds\n", text, 1000*ms/RUNS);
40 }
41 else
42 {
43 timer_start(t);
44 }
45}
46
47// http://www.lipsum.com
48

Callers 1

test_loremFunction · 0.85

Calls 2

timer_elapsedFunction · 0.85
timer_startFunction · 0.85

Tested by 1

test_loremFunction · 0.68