Skip to content

Commit

Permalink
Merge pull request #211 from w3c/end-time
Browse files Browse the repository at this point in the history
Export `end time` so that subclasses can change it
  • Loading branch information
noamr authored Feb 16, 2024
2 parents d97e6e3 + 38b889b commit e55af52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ <h2>The <dfn>PerformanceEntry</dfn> interface</h2>
the first recorded timestamp of this performance metric.</dd>
<dt><dfn>duration</dfn></dt>
<dd>
The getter steps for the <a>duration</a> attribute are to return 0 if <a>this</a>'s <a>endTime</a>
is 0; otherwise <a>this</a>'s <a>endTime</a> - <a>this</a>'s <a>startTime</a>.
The getter steps for the <a>duration</a> attribute are to return 0 if <a>this</a>'s <a>end time</a>
is 0; otherwise <a>this</a>'s <a>end time</a> - <a>this</a>'s <a>startTime</a>.
</dd>
<dt><dfn>navigationId</dfn></dt>
<dd>
Expand All @@ -354,7 +354,7 @@ <h2>The <dfn>PerformanceEntry</dfn> interface</h2>
<p>When <dfn>toJSON</dfn> is called, run [[WebIDL]]'s <a>default toJSON
steps</a>.</p>

<p>A <a>PerformanceEntry</a> has a {{DOMHighResTimeStamp}} <dfn>endTime</dfn>,
<p>A <a>PerformanceEntry</a> has a {{DOMHighResTimeStamp}} <dfn class="export">end time</dfn>,
initially 0.

<p>To <dfn class="export">initialize a <a>PerformanceEntry</a></dfn> <var>entry</var> given a {{DOMHighResTimeStamp}} <var>startTime</var>,
Expand All @@ -365,7 +365,7 @@ <h2>The <dfn>PerformanceEntry</dfn> interface</h2>
<li>Initialize <var>entry</var>'s <a>startTime</a> to <var>startTime</var>.
<li>Initialize <var>entry</var>'s <a>entryType</a> to <var>entryType</var>.
<li>Initialize <var>entry</var>'s <a>name</a> to <var>name</var>.
<li>Initialize <var>entry</var>'s <a>endTime</a> to <var>endTime</var>.
<li>Initialize <var>entry</var>'s <a>end time</a> to <var>endTime</var>.
</ol>
</section>
<section data-link-for="PerformanceObserver" data-dfn-for=
Expand Down

0 comments on commit e55af52

Please sign in to comment.