mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 06:21:19 +12:00
Correctly read kernel time.
This commit is contained in:
parent
d156ad0a0f
commit
9313055543
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ void QueryProcTime(uint64_t &out_now, uint64_t &out_user, uint64_t &out_kernel)
|
||||||
struct tms time_info;
|
struct tms time_info;
|
||||||
clock_t clock_now = times(&time_info);
|
clock_t clock_now = times(&time_info);
|
||||||
clock_t clock_user = time_info.tms_utime;
|
clock_t clock_user = time_info.tms_utime;
|
||||||
clock_t clock_kernel = time_info.tms_utime;
|
clock_t clock_kernel = time_info.tms_stime;
|
||||||
out_now = static_cast<uint64_t>(clock_now);
|
out_now = static_cast<uint64_t>(clock_now);
|
||||||
out_user = static_cast<uint64_t>(clock_user);
|
out_user = static_cast<uint64_t>(clock_user);
|
||||||
out_kernel = static_cast<uint64_t>(clock_kernel);
|
out_kernel = static_cast<uint64_t>(clock_kernel);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue