Skip to content
Snippets Groups Projects
Unverified Commit 9721aa8e authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

Merge pull request #1535 from rwaldron/agent-monotonic-now

Defines $262.agent.monotonicNow()
parents 3bfad28c 8dbeb27b
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ properties of the global scope prior to test execution. ...@@ -93,6 +93,7 @@ properties of the global scope prior to test execution.
sleeps the agent for approximately that duration. sleeps the agent for approximately that duration.
- **`leaving`** - a function that signals that the agent is done and - **`leaving`** - a function that signals that the agent is done and
may be terminated (if possible). may be terminated (if possible).
- **`monotonicNow`** - a function that returns a value that conforms to [`DOMHighResTimeStamp`][] and is produced in such a way that its semantics conform to **[Monotonic Clock][]**.
- **`broadcast`** - a function that takes a SharedArrayBuffer and an Int32 - **`broadcast`** - a function that takes a SharedArrayBuffer and an Int32
and broadcasts the two values to all concurrent agents. The function and broadcasts the two values to all concurrent agents. The function
blocks until all agents have retrieved the message. Note, this assumes blocks until all agents have retrieved the message. Note, this assumes
...@@ -101,6 +102,19 @@ properties of the global scope prior to test execution. ...@@ -101,6 +102,19 @@ properties of the global scope prior to test execution.
and returns it if it exists, or returns `null` otherwise. and returns it if it exists, or returns `null` otherwise.
- **`sleep`** - a function that takes a millisecond argument and - **`sleep`** - a function that takes a millisecond argument and
sleeps the execution for approximately that duration. sleeps the execution for approximately that duration.
- **`monotonicNow`** - a function that returns a value that conforms to [`DOMHighResTimeStamp`][] and is produced in such a way that its semantics conform to **[Monotonic Clock][]**.
#### Normative references
[`DOMHighResTimeStamp`][], **[Monotonic Clock][]**<br>
Ilya Grigorik, James Simonsen, Jatinder Mann.<br>
[High Resolution Time Level 2](https://www.w3.org/TR/hr-time-2/) March 2018. W3C. URL: [https://www.w3.org/TR/hr-time-2/](https://www.w3.org/TR/hr-time-2/)
[`DOMHighResTimeStamp`]: https://www.w3.org/TR/hr-time-2/#sec-domhighrestimestamp "**DOMHighResTimeStamp**"
[Monotonic Clock]: https://www.w3.org/TR/hr-time-2/#sec-monotonic-clock "**Monotonic Clock**"
### Strict Mode ### Strict Mode
......
{ {
"name": "test262", "name": "test262",
"version": "2.0.0", "version": "3.0.0",
"description": "Test262 tests conformance to the continually maintained draft future ECMAScript standard found at http://tc39.github.io/ecma262/ , together with any Stage 3 or later TC39 proposals.", "description": "Test262 tests conformance to the continually maintained draft future ECMAScript standard found at http://tc39.github.io/ecma262/ , together with any Stage 3 or later TC39 proposals.",
"repository": { "repository": {
"type": "git", "type": "git",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment