MCPcopy Create free account
hub / github.com/0x1abin/MultiTimer / timerCallback1

Function timerCallback1

examples/test_linux.c:14–17  ·  view source on GitHub ↗

Callback functions for the timers

Source from the content-addressed store, hash-verified

12
13// Callback functions for the timers
14void timerCallback1(MultiTimer* timer, void* userData) {
15 printf("Timer 1 fired at %lu ms\n", getPlatformTicks());
16 multiTimerStart(timer, 500, timerCallback1, NULL); // Restart timer
17}
18
19void timerCallback2(MultiTimer* timer, void* userData) {
20 printf("Timer 2 fired at %lu ms\n", getPlatformTicks());

Callers

nothing calls this directly

Calls 2

getPlatformTicksFunction · 0.85
multiTimerStartFunction · 0.85

Tested by

no test coverage detected