[Kernel/Memory] Implement datetime a bit more nicely

This commit is contained in:
wheremyfoodat 2022-09-24 04:40:43 +03:00
parent 4da023c236
commit c4cb20f846
4 changed files with 17 additions and 5 deletions

View file

@ -155,6 +155,11 @@ public:
return env.totalTicks;
}
// Get reference to tick count. Memory needs access to this
u64& getTicksRef() {
return env.totalTicks;
}
void runFrame() {
env.ticksLeft = 268111856 / 60;
const auto exitReason = jit->Run();