aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/time.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/time.moon b/lib/time.moon
index 44cb998..6e70355 100644
--- a/lib/time.moon
+++ b/lib/time.moon
@@ -4,6 +4,7 @@ import monotime from require 'system'
class Clock extends IO
new: (@frametime) =>
+ return unless monotime
@last = monotime!
@dt = 0
@is_dirty = false
@@ -150,4 +151,5 @@ returns true once every period seconds."
:ramp
:tick
:every
+ '*clock*': Value 'clock', Clock 1/60
}