mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Keeps stats about usage time of disk and cpu.
This commit is contained in:
parent
fb4f257593
commit
5dfc67ec18
11 changed files with 230 additions and 8 deletions
|
|
@ -1370,5 +1370,15 @@ retry:
|
|||
return count;
|
||||
}
|
||||
|
||||
uint64_t tick(void)
|
||||
{
|
||||
LARGE_INTEGER t;
|
||||
|
||||
if (!QueryPerformanceCounter(&t))
|
||||
return 0;
|
||||
|
||||
return t.QuadPart;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue