summaryrefslogtreecommitdiff
path: root/lib/std/now.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/now.myr')
-rw-r--r--lib/std/now.myr11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/std/now.myr b/lib/std/now.myr
new file mode 100644
index 0000000..5f6d8d1
--- /dev/null
+++ b/lib/std/now.myr
@@ -0,0 +1,11 @@
+use "types.use"
+use "syswrap.use"
+
+pkg std =
+ const now : (-> time)
+;;
+
+/* microseconds since epoch */
+const now = {
+ -> curtime()
+}