mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
LibWeb: Add the EpochTimestamp IDL typedef
This commit is contained in:
parent
8f3fe0c39e
commit
63fd4cf9e4
Notes:
github-actions[bot]
2025-06-21 08:01:41 +00:00
Author: https://github.com/gmta
Commit: 63fd4cf9e4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5143
2 changed files with 18 additions and 0 deletions
16
Libraries/LibWeb/HighResolutionTime/EpochTimeStamp.h
Normal file
16
Libraries/LibWeb/HighResolutionTime/EpochTimeStamp.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::HighResolutionTime {
|
||||
|
||||
// https://www.w3.org/TR/hr-time-3/#the-epochtimestamp-typedef
|
||||
using EpochTimeStamp = WebIDL::UnsignedLongLong;
|
||||
|
||||
}
|
2
Libraries/LibWeb/HighResolutionTime/EpochTimeStamp.idl
Normal file
2
Libraries/LibWeb/HighResolutionTime/EpochTimeStamp.idl
Normal file
|
@ -0,0 +1,2 @@
|
|||
// https://www.w3.org/TR/hr-time-3/#the-epochtimestamp-typedef
|
||||
typedef unsigned long long EpochTimeStamp;
|
Loading…
Add table
Add a link
Reference in a new issue