[*] 529eba18 cont. added support for process time

This commit is contained in:
Reece Wilson 2023-10-13 21:57:38 +01:00
parent 529eba18c7
commit 74b8910bf9
2 changed files with 4 additions and 1 deletions

View File

@ -559,6 +559,7 @@ namespace Aurora::Threading::Threads
{
uClockCreationTime[0] = AuTime::CurrentClockNS();
uClockCreationTime[1] = AuTime::SteadyClockNS();
uClockCreationTime[2] = AuTime::ProcessClockNS();
}
AuUInt64 OSThread::GetThreadCreationTime(Time::EClock eClock)
@ -575,6 +576,8 @@ namespace Aurora::Threading::Threads
return uClockCreationTime[0];
case Time::EClock::eSteady:
return uClockCreationTime[1];
case Time::EClock::eProcessTime:
return uClockCreationTime[2];
default:
SysPushErrorArg();
return {};

View File

@ -112,7 +112,7 @@ namespace Aurora::Threading::Threads
Primitives::CriticalSection exitOnlyOnce_;
AuList<AuSPtr<IThreadFeature>> threadFeatures_;
AuBinarySemaphore epExecEvent;
AuUInt64 uClockCreationTime[2] {};
AuUInt64 uClockCreationTime[3] {};
AuFunction<void()> task_;