2022-09-21 00:24:02 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
2022-10-04 21:03:50 +01:00
|
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
2022-09-21 00:24:02 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-10-13 23:20:27 +02:00
|
|
|
#include <LibJS/Forward.h>
|
2022-10-04 21:13:35 +01:00
|
|
|
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
|
|
|
|
2022-09-21 00:24:02 +02:00
|
|
|
namespace Web::HighResolutionTime {
|
|
|
|
|
2025-01-07 10:08:14 +00:00
|
|
|
DOMHighResTimeStamp estimated_monotonic_time_of_the_unix_epoch();
|
2022-10-13 23:20:27 +02:00
|
|
|
DOMHighResTimeStamp get_time_origin_timestamp(JS::Object const&);
|
2022-10-04 21:13:35 +01:00
|
|
|
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability = false);
|
2024-04-11 22:06:19 +02:00
|
|
|
DOMHighResTimeStamp current_high_resolution_time(JS::Object const&);
|
2022-10-13 23:20:27 +02:00
|
|
|
DOMHighResTimeStamp relative_high_resolution_time(DOMHighResTimeStamp, JS::Object const&);
|
|
|
|
DOMHighResTimeStamp relative_high_resolution_coarsen_time(DOMHighResTimeStamp, JS::Object const&);
|
2022-10-04 21:03:50 +01:00
|
|
|
DOMHighResTimeStamp coarsened_shared_current_time(bool cross_origin_isolated_capability = false);
|
2025-01-07 10:08:14 +00:00
|
|
|
DOMHighResTimeStamp wall_clock_unsafe_current_time();
|
2022-10-04 21:25:00 +01:00
|
|
|
DOMHighResTimeStamp unsafe_shared_current_time();
|
2022-09-21 00:24:02 +02:00
|
|
|
|
|
|
|
}
|