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

Class timeval

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected