From d55b4b84d8f4e3d55cc88ab0347616840870c9a6 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 27 Nov 2024 12:27:36 +0100 Subject: [PATCH 1/2] Update 'relative high resolution time' to use the principal realm. --- index.html | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index c09bc41..a26db88 100644 --- a/index.html +++ b/index.html @@ -624,22 +624,36 @@

The relative high resolution time given an [=unsafe moment=] from the [=monotonic clock=] |time:unsafe moment on - the monotonic clock| and a [=Realm/global object=] |global:global - object|, is the [=duration=] returned from the following steps: + the monotonic clock| and a [=global object=] |global:global object|, + is the [=duration=] returned from the following steps:
    +
  1. Let |settings:environment settings object| be the |global|'s + [=global object/realm=]'s [=realm/principal realm=]'s + [=relevant settings object=]. +
  2. Let |coarse time:moment on the monotonic clock| be the result of - calling [=coarsen time=] with |time| and |global|'s [=relevant - settings object=]'s [=environment settings object/cross-origin - isolated capability=]. + calling [=coarsen time=] with |time| and |settings|'s + [=environment settings object/cross-origin isolated capability=].
  3. Return the [=relative high resolution coarse time=] for |coarse time| and |global|.
  4. -
The relative high resolution coarse time + +
+
+ The relative high resolution coarse time given a [=moment=] from the [=monotonic clock=] |coarseTime:moment on - the monotonic clock| and a [=Realm/global object=] |global:global - object|, is the [=duration from=] |global|'s [=relevant settings - object=]'s [=environment settings object/time origin=] to |coarseTime|. + the monotonic clock| and a [=global object=] |global:global object|, + is the [=duration=] returned from the following steps: +
    +
  1. Let |settings:environment settings object| be the |global|'s + [=global object/realm=]'s [=realm/principal realm=]'s + [=relevant settings object=]. +
  2. +
  3. Return the [=duration from=] |settings|'s + [=environment settings object/time origin=] to |coarseTime|. +
  4. +

The current high resolution time given a From be73b367b5595c633beb0b0b172b9b7680d8bc94 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 27 Nov 2024 14:34:25 +0100 Subject: [PATCH 2/2] Rephrase --- index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index a26db88..fc1e0b7 100644 --- a/index.html +++ b/index.html @@ -628,8 +628,7 @@

is the [=duration=] returned from the following steps:
  1. Let |settings:environment settings object| be the |global|'s - [=global object/realm=]'s [=realm/principal realm=]'s - [=relevant settings object=]. + [=relevant principal settings object=].
  2. Let |coarse time:moment on the monotonic clock| be the result of calling [=coarsen time=] with |time| and |settings|'s @@ -647,9 +646,8 @@

    is the [=duration=] returned from the following steps:
    1. Let |settings:environment settings object| be the |global|'s - [=global object/realm=]'s [=realm/principal realm=]'s - [=relevant settings object=]. -
    2. + [=relevant principal settings object=]. +
    3. Return the [=duration from=] |settings|'s [=environment settings object/time origin=] to |coarseTime|.