aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-13 15:36:57 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-13 15:36:57 +0000
commit563c6cb1a4f589db59f5241e6e1f78d46477601c (patch)
treec51a05011e44d11afffca6267fbe4d8ade53a45a /lib
parentadd Result spec (diff)
downloadalive-563c6cb1a4f589db59f5241e6e1f78d46477601c.tar.gz
alive-563c6cb1a4f589db59f5241e6e1f78d46477601c.zip
docs/guide: runtime description
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
}