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

Method times

source/kernel/ksystem.cpp:430–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430U32 KSystem::times(KThread* thread, U32 buf) {
431 if (buf) {
432 KMemory* memory = thread->memory;
433
434 memory->writed(buf, (U32)thread->getThreadUserTime() * 10); // user time
435 memory->writed(buf + 4, (U32)thread->kernelTime * 10); // system time
436 memory->writed(buf + 8, 0); // user time of children
437 memory->writed(buf + 12, 0); // system time of children
438 }
439 return (U32)Platform::getMicroCounter()*10;
440}
441
442U32 KSystem::setpgid(U32 pid, U32 gpid) {
443 KProcessPtr process;

Callers

nothing calls this directly

Calls 2

getThreadUserTimeMethod · 0.80
writedMethod · 0.45

Tested by

no test coverage detected