summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2023-03-17 19:50:39 +0100
committerJelle Raaijmakers <jelle@gmta.nl>2023-05-24 23:18:07 +0200
commitfc5cab5c2180b4ba8efcf74b937c2b7e26dad781 (patch)
tree59cdd3836d2db037551e7e970d7b64e970814404 /Userland/Libraries/LibJS
parentb2e7b8cdffa2297b335698677f5c0434dbf92e75 (diff)
downloadserenity-fc5cab5c2180b4ba8efcf74b937c2b7e26dad781.zip
Everywhere: Use MonotonicTime instead of Duration
This is easily identifiable by anyone who uses Duration::now_monotonic, and any downstream users of that data.
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r--Userland/Libraries/LibJS/Contrib/Test262/AgentObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Contrib/Test262/AgentObject.cpp b/Userland/Libraries/LibJS/Contrib/Test262/AgentObject.cpp
index 6d267280ce..a5904babea 100644
--- a/Userland/Libraries/LibJS/Contrib/Test262/AgentObject.cpp
+++ b/Userland/Libraries/LibJS/Contrib/Test262/AgentObject.cpp
@@ -33,8 +33,8 @@ JS::ThrowCompletionOr<void> AgentObject::initialize(JS::Realm& realm)
JS_DEFINE_NATIVE_FUNCTION(AgentObject::monotonic_now)
{
- auto time = Duration::now_monotonic();
- auto milliseconds = time.to_milliseconds();
+ auto time = MonotonicTime::now();
+ auto milliseconds = time.milliseconds();
return Value(static_cast<double>(milliseconds));
}