mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
Use Cemu basic types.
This commit is contained in:
parent
8a8d9a2f73
commit
60cb1aebd8
4 changed files with 23 additions and 23 deletions
|
@ -1,11 +1,11 @@
|
|||
#include "util/SystemInfo/SystemInfo.h"
|
||||
|
||||
uint64_t ProcessorTime::work()
|
||||
uint64 ProcessorTime::work()
|
||||
{
|
||||
return user + kernel;
|
||||
}
|
||||
|
||||
uint64_t ProcessorTime::total()
|
||||
uint64 ProcessorTime::total()
|
||||
{
|
||||
return idle + user + kernel;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ double ProcessorTime::Compare(ProcessorTime &last, ProcessorTime &now)
|
|||
|
||||
void QueryProcTime(ProcessorTime &out)
|
||||
{
|
||||
uint64_t now, user, kernel;
|
||||
uint64 now, user, kernel;
|
||||
QueryProcTime(now, user, kernel);
|
||||
|
||||
out.idle = now - (user + kernel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue