MCPcopy Create free account
hub / github.com/axboe/liburing / gettimeofday_ms

Function gettimeofday_ms

examples/poll-bench.c:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15static unsigned long runtime_ms = 10000;
16
17static unsigned long gettimeofday_ms(void)
18{
19 struct timeval tv;
20
21 gettimeofday(&tv, NULL);
22 return (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
23}
24
25int main(void)
26{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected