mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 08:03:21 +00:00
20 lines
432 B
C++
20 lines
432 B
C++
![]() |
/*
|
||
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <LibWeb/HighResolutionTime/CoarsenTime.h>
|
||
|
|
||
|
namespace Web::HighResolutionTime {
|
||
|
|
||
|
// https://w3c.github.io/hr-time/#dfn-coarsen-time
|
||
|
double coarsen_time(double timestamp, bool cross_origin_isolated_capability)
|
||
|
{
|
||
|
// FIXME: Implement this.
|
||
|
(void)cross_origin_isolated_capability;
|
||
|
return timestamp;
|
||
|
}
|
||
|
|
||
|
}
|