MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getThreadUserTime

Method getThreadUserTime

source/kernel/kthread.cpp:1538–1544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1536}
1537
1538U64 KThread::getThreadUserTime() {
1539#ifdef BOXEDWINE_MULTI_THREADED
1540 return KSystem::getMicroCounter() - threadStartTime - kernelTime;
1541#else
1542 return userTime;
1543#endif
1544}
1545
1546std::shared_ptr<KThreadGlContext> KThread::getGlContextById(U32 id) {
1547 return this->glContext[id];

Callers 2

timesMethod · 0.80
getrusuageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected