MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / main

Function main

tools/timed_trigger_test.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33int main ()
34{
35 TimeTrigger trigger (10.0, callback);
36 Dummy dummy;
37 global_time = pcl::getTime ();
38 trigger.start ();
39 std::this_thread::sleep_for(2s);
40 trigger.registerCallback ([&]{ dummy.myTimer (); });
41 std::this_thread::sleep_for(3s);
42 trigger.setInterval (0.2);
43 std::this_thread::sleep_for(2s);
44 return 0;
45}

Callers

nothing calls this directly

Calls 5

getTimeFunction · 0.85
myTimerMethod · 0.80
setIntervalMethod · 0.80
startMethod · 0.45
registerCallbackMethod · 0.45

Tested by

no test coverage detected