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

Function getPlatformTicks

examples/test_linux.c:7–11  ·  view source on GitHub ↗

Platform-specific function to get current ticks (milliseconds)

Source from the content-addressed store, hash-verified

5
6// Platform-specific function to get current ticks (milliseconds)
7uint64_t getPlatformTicks() {
8 struct timeval now;
9 gettimeofday(&now, NULL);
10 return now.tv_sec * 1000LL + now.tv_usec / 1000;
11}
12
13// Callback functions for the timers
14void timerCallback1(MultiTimer* timer, void* userData) {

Callers 4

timerCallback1Function · 0.85
timerCallback2Function · 0.85
timerCallback3Function · 0.85
timerCallback4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected