mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
LibWeb: Use a precise timer for performance timestamps
This commit is contained in:
parent
679fe00d10
commit
05c571bf9b
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/05c571bf9b Pull-request: https://github.com/SerenityOS/serenity/pull/23353 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/trflynn89 ✅
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user