[*] bug: fix process time counters under win32
This commit is contained in:
parent
0175809d0a
commit
c787d85485
@ -305,7 +305,7 @@ namespace Aurora::Time
|
||||
|
||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||
FILETIME creation, exit, kernel, user;
|
||||
if (::GetProcessTimes(GetCurrentThread(), &creation, &exit, &kernel, &user))
|
||||
if (::GetProcessTimes(GetCurrentProcess(), &creation, &exit, &kernel, &user))
|
||||
{
|
||||
ULARGE_INTEGER ullUser;
|
||||
{
|
||||
@ -335,7 +335,7 @@ namespace Aurora::Time
|
||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||
FILETIME creation, exit, kernel, user;
|
||||
|
||||
if (::GetProcessTimes(GetCurrentThread(), &creation, &exit, &kernel, &user))
|
||||
if (::GetProcessTimes(GetCurrentProcess(), &creation, &exit, &kernel, &user))
|
||||
{
|
||||
ULARGE_INTEGER ullUser;
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user