MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / start

Method start

Source/Basic/Scheduler.cpp:269–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void SystemTimer::start(float duration, const std::function<void()>& callback) {
270 _time = 0.0f;
271 _duration = std::max(0.0f, duration);
272 _callback = callback;
273 SharedDirector.getSystemScheduler()->schedule(&_scheduledItem);
274}
275
276void SystemTimerBase::stop() {
277 _time = _duration = 0.0f;

Callers

nothing calls this directly

Calls 3

getSystemSchedulerMethod · 0.80
maxFunction · 0.50
scheduleMethod · 0.45

Tested by

no test coverage detected