summaryrefslogtreecommitdiff
path: root/luals-stubs/time.lua
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-03-07 17:22:06 +1100
committerjacqueline <me@jacqueline.id.au>2024-03-07 17:22:06 +1100
commit36a19182bec171d6376e51f5689aaf70b9d6fbad (patch)
treeb75be5f1567510ce2c60693c978a6ddf0b879905 /luals-stubs/time.lua
parentbeb1f654958c28429323fcb9622c9c8d206979a3 (diff)
downloadtangara-fw-36a19182bec171d6376e51f5689aaf70b9d6fbad.tar.gz
Use luals-stubs as the source of truth for docs, instead of maintaining
separate docs stubs Includes introducing a cool new script to turn lua-language-server's json output into markdown documentation.
Diffstat (limited to 'luals-stubs/time.lua')
-rw-r--r--luals-stubs/time.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/luals-stubs/time.lua b/luals-stubs/time.lua
new file mode 100644
index 00000000..95bbabdb
--- /dev/null
+++ b/luals-stubs/time.lua
@@ -0,0 +1,12 @@
+--- @meta
+
+--- The `time` module contains functions for dealing with the current time
+--- since boot.
+--- @class time
+local time = {}
+
+--- Returns the time in milliseconds since the device booted.
+--- @return integer
+function time.ticks() end
+
+return time