1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibWeb: Save document load timing when creating browsing context

This commit is contained in:
Andreas Kling 2022-09-21 00:24:02 +02:00
parent 270de12d59
commit d4fc1367f6
4 changed files with 43 additions and 3 deletions

View file

@ -0,0 +1,19 @@
/*
* 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;
}
}