mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +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
14
Userland/Libraries/LibWeb/HighResolutionTime/CoarsenTime.h
Normal file
14
Userland/Libraries/LibWeb/HighResolutionTime/CoarsenTime.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Web::HighResolutionTime {
|
||||
|
||||
// https://w3c.github.io/hr-time/#dfn-coarsen-time
|
||||
double coarsen_time(double timestamp, bool cross_origin_isolated_capability = false);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue