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 1fa7a1cac4
commit 1f8a5f0ce5
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.modifier = m_modifiers | (released ? (uint8_t)Input::KeyEvent::Modifier::Released : 0);
event.key = key; event.key = key;
if (event.pressed() && event.key == Input::Key::F11)
dprintln("{} ms", TimerHandler::get().ms_since_boot());
if (m_event_queue.full()) if (m_event_queue.full())
{ {
dwarnln("PS/2 event queue full"); dwarnln("PS/2 event queue full");