mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibWeb: Add DOMHighResTimeStamp typedef
This commit is contained in:
parent
398e44b27b
commit
5c4eb90d65
3 changed files with 18 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
||||||
namespace Web::HighResolutionTime {
|
namespace Web::HighResolutionTime {
|
||||||
|
|
||||||
// https://w3c.github.io/hr-time/#dfn-coarsen-time
|
// https://w3c.github.io/hr-time/#dfn-coarsen-time
|
||||||
double coarsen_time(double timestamp, bool cross_origin_isolated_capability)
|
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability)
|
||||||
{
|
{
|
||||||
// FIXME: Implement this.
|
// FIXME: Implement this.
|
||||||
(void)cross_origin_isolated_capability;
|
(void)cross_origin_isolated_capability;
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||||
|
|
||||||
namespace Web::HighResolutionTime {
|
namespace Web::HighResolutionTime {
|
||||||
|
|
||||||
// https://w3c.github.io/hr-time/#dfn-coarsen-time
|
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability = false);
|
||||||
double coarsen_time(double timestamp, bool cross_origin_isolated_capability = false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace Web::HighResolutionTime {
|
||||||
|
|
||||||
|
// https://w3c.github.io/hr-time/#dom-domhighrestimestamp
|
||||||
|
using DOMHighResTimeStamp = double;
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue