Luna/kernel/src/sys/clock.cpp

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;
}