MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / Start

Method Start

DSView/pv/dstimer.cpp:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void DsTimer::Start(int millsec, CALLBACL_FUNC f)
52 {
53 if (_isActived)
54 return;
55
56 _call = f;
57
58 if (!_binded){
59 _binded = true;
60 connect(&_timer, SIGNAL(timeout()), this, SLOT(on_timeout()));
61 }
62
63 _timer.start(millsec);
64 _isActived = true;
65 _beginTime = high_resolution_clock::now();
66}
67
68void DsTimer::SetCallback(CALLBACL_FUNC f)
69 {

Callers 6

mainFunction · 0.45
capture_initMethod · 0.45
action_start_captureMethod · 0.45
exec_captureMethod · 0.45
OnMessageMethod · 0.45
delay_prop_msgMethod · 0.45

Calls 1

startMethod · 0.45

Tested by

no test coverage detected