diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-13 15:36:57 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-13 15:36:57 +0000 |
| commit | 563c6cb1a4f589db59f5241e6e1f78d46477601c (patch) | |
| tree | c51a05011e44d11afffca6267fbe4d8ade53a45a /lib | |
| parent | add Result spec (diff) | |
| download | alive-563c6cb1a4f589db59f5241e6e1f78d46477601c.tar.gz alive-563c6cb1a4f589db59f5241e6e1f78d46477601c.zip | |
docs/guide: runtime description
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/time.moon | 2 |
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 } |
