1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:47:35 +00:00

LibWeb: Add DOMHighResTimeStamp typedef

This commit is contained in:
Linus Groh 2022-10-04 21:13:35 +01:00
parent 398e44b27b
commit 5c4eb90d65
3 changed files with 18 additions and 3 deletions

View file

@ -6,9 +6,10 @@
#pragma once
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
namespace Web::HighResolutionTime {
// https://w3c.github.io/hr-time/#dfn-coarsen-time
double coarsen_time(double timestamp, bool cross_origin_isolated_capability = false);
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability = false);
}