summaryrefslogtreecommitdiff
path: root/runtime/ops/timers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/timers.rs')
-rw-r--r--runtime/ops/timers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/timers.rs b/runtime/ops/timers.rs
index 783395cad..34a3eea5f 100644
--- a/runtime/ops/timers.rs
+++ b/runtime/ops/timers.rs
@@ -166,7 +166,7 @@ fn op_now(
// If the permission is not enabled
// Round the nano result on 2 milliseconds
// see: https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp#Reduced_time_precision
- if op_state.borrow::<Permissions>().check_hrtime().is_err() {
+ if op_state.borrow::<Permissions>().hrtime.check().is_err() {
subsec_nanos -= subsec_nanos % reduced_time_precision;
}