Keeps stats about usage time of disk and cpu.

This commit is contained in:
Andrea Mazzoleni 2014-06-25 22:32:36 +02:00
parent fb4f257593
commit 5dfc67ec18
11 changed files with 230 additions and 8 deletions

View file

@ -1370,5 +1370,15 @@ retry:
return count;
}
uint64_t tick(void)
{
LARGE_INTEGER t;
if (!QueryPerformanceCounter(&t))
return 0;
return t.QuadPart;
}
#endif