MCPcopy Create free account
hub / github.com/IoLanguage/io / rusage

Class rusage

tools/source/main.c:19–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17double System_UserTime(void)
18{
19 struct rusage u;
20 int r = getrusage(0, &u);
21 return r == -1 ? -1 : u.ru_utime.tv_sec + (((double)u.ru_utime.tv_usec)/1000000);
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected