LibWeb: Report performance based timestamps relative to ESO time origin

This commit is contained in:
Tim Ledbetter 2025-01-07 10:08:14 +00:00 committed by Alexander Kalenik
commit 7488136a51
Notes: github-actions[bot] 2025-01-27 13:54:36 +00:00
12 changed files with 248 additions and 28 deletions

View file

@ -12,12 +12,14 @@
namespace Web::HighResolutionTime {
DOMHighResTimeStamp estimated_monotonic_time_of_the_unix_epoch();
DOMHighResTimeStamp get_time_origin_timestamp(JS::Object const&);
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability = false);
DOMHighResTimeStamp current_high_resolution_time(JS::Object const&);
DOMHighResTimeStamp relative_high_resolution_time(DOMHighResTimeStamp, JS::Object const&);
DOMHighResTimeStamp relative_high_resolution_coarsen_time(DOMHighResTimeStamp, JS::Object const&);
DOMHighResTimeStamp coarsened_shared_current_time(bool cross_origin_isolated_capability = false);
DOMHighResTimeStamp wall_clock_unsafe_current_time();
DOMHighResTimeStamp unsafe_shared_current_time();
}