9 lines
212 B
C++
9 lines
212 B
C++
|
#include "interrupts/Context.h"
|
||
|
#include "thread/Scheduler.h"
|
||
|
|
||
|
void sys_clock(Context* context)
|
||
|
{
|
||
|
Task* current_task = Scheduler::current_task();
|
||
|
context->rax = (long)current_task->cpu_time;
|
||
|
return;
|
||
|
}
|