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:
parent
270de12d59
commit
d4fc1367f6
4 changed files with 43 additions and 3 deletions
19
Userland/Libraries/LibWeb/HighResolutionTime/CoarsenTime.cpp
Normal file
19
Userland/Libraries/LibWeb/HighResolutionTime/CoarsenTime.cpp
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue