LibWeb: Use a precise timer for performance timestamps

This commit is contained in:
Tim Ledbetter 2024-02-26 17:52:03 +00:00 committed by Andrew Kaster
parent 679fe00d10
commit 05c571bf9b
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00

View File

@ -23,6 +23,7 @@ JS_DEFINE_ALLOCATOR(Performance);
Performance::Performance(HTML::Window& window)
: DOM::EventTarget(window.realm())
, m_window(window)
, m_timer(Core::TimerType::Precise)
{
m_timer.start();
}