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.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/runtime/ops/timers.rs b/runtime/ops/timers.rs
deleted file mode 100644
index 3401c36f1..000000000
--- a/runtime/ops/timers.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-use crate::permissions::Permissions;
-
-pub fn init(rt: &mut deno_core::JsRuntime) {
- {
- let op_state = rt.op_state();
- let mut state = op_state.borrow_mut();
- state.put(deno_timers::GlobalTimer::default());
- state.put(deno_timers::StartTime::now());
- }
- super::reg_sync(
- rt,
- "op_global_timer_stop",
- deno_timers::op_global_timer_stop,
- );
- super::reg_sync(
- rt,
- "op_global_timer_start",
- deno_timers::op_global_timer_start,
- );
- super::reg_async(rt, "op_global_timer", deno_timers::op_global_timer);
- super::reg_sync(rt, "op_now", deno_timers::op_now::<Permissions>);
- super::reg_sync(
- rt,
- "op_sleep_sync",
- deno_timers::op_sleep_sync::<Permissions>,
- );
-}