MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / runScheduler

Method runScheduler

tests/test-scheduler-thread-safe.cpp:84–90  ·  view source on GitHub ↗

Helper: Run scheduler for specified duration

Source from the content-addressed store, hash-verified

82
83 // Helper: Run scheduler for specified duration
84 void runScheduler(Scheduler& ts, unsigned long duration_ms) {
85 unsigned long start = millis();
86 while (millis() - start < duration_ms) {
87 ts.execute();
88 delay(1);
89 }
90 }
91
92 // Helper: Wait for condition with timeout
93 template<typename Condition>

Callers

nothing calls this directly

Calls 3

millisFunction · 0.85
delayFunction · 0.85
executeMethod · 0.80

Tested by

no test coverage detected