Kernel: F11 now prints current time to debug output

This allows better timer percision and system freeze checks
This commit is contained in:
Bananymous 2023-08-04 15:16:31 +03:00
parent fdae253695
commit 868444f043
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,9 @@ namespace Kernel::Input
event.modifier = m_modifiers | (released ? (uint8_t)Input::KeyEvent::Modifier::Released : 0);
event.key = key;
if (event.pressed() && event.key == Input::Key::F11)
dprintln("{} ms", TimerHandler::get().ms_since_boot());
if (m_event_queue.full())
{
dwarnln("PS/2 event queue full");