[*] 529eba18
cont. added support for process time
This commit is contained in:
parent
529eba18c7
commit
74b8910bf9
@ -559,6 +559,7 @@ namespace Aurora::Threading::Threads
|
|||||||
{
|
{
|
||||||
uClockCreationTime[0] = AuTime::CurrentClockNS();
|
uClockCreationTime[0] = AuTime::CurrentClockNS();
|
||||||
uClockCreationTime[1] = AuTime::SteadyClockNS();
|
uClockCreationTime[1] = AuTime::SteadyClockNS();
|
||||||
|
uClockCreationTime[2] = AuTime::ProcessClockNS();
|
||||||
}
|
}
|
||||||
|
|
||||||
AuUInt64 OSThread::GetThreadCreationTime(Time::EClock eClock)
|
AuUInt64 OSThread::GetThreadCreationTime(Time::EClock eClock)
|
||||||
@ -575,6 +576,8 @@ namespace Aurora::Threading::Threads
|
|||||||
return uClockCreationTime[0];
|
return uClockCreationTime[0];
|
||||||
case Time::EClock::eSteady:
|
case Time::EClock::eSteady:
|
||||||
return uClockCreationTime[1];
|
return uClockCreationTime[1];
|
||||||
|
case Time::EClock::eProcessTime:
|
||||||
|
return uClockCreationTime[2];
|
||||||
default:
|
default:
|
||||||
SysPushErrorArg();
|
SysPushErrorArg();
|
||||||
return {};
|
return {};
|
||||||
|
@ -112,7 +112,7 @@ namespace Aurora::Threading::Threads
|
|||||||
Primitives::CriticalSection exitOnlyOnce_;
|
Primitives::CriticalSection exitOnlyOnce_;
|
||||||
AuList<AuSPtr<IThreadFeature>> threadFeatures_;
|
AuList<AuSPtr<IThreadFeature>> threadFeatures_;
|
||||||
AuBinarySemaphore epExecEvent;
|
AuBinarySemaphore epExecEvent;
|
||||||
AuUInt64 uClockCreationTime[2] {};
|
AuUInt64 uClockCreationTime[3] {};
|
||||||
|
|
||||||
AuFunction<void()> task_;
|
AuFunction<void()> task_;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user