summaryrefslogtreecommitdiff
path: root/lib/std/units.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/units.myr')
-rw-r--r--lib/std/units.myr6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/units.myr b/lib/std/units.myr
index f1a99e9..4f1d24c 100644
--- a/lib/std/units.myr
+++ b/lib/std/units.myr
@@ -1,3 +1,5 @@
+use "types.use"
+
pkg std =
/* JEDEC 100B.1 memory sizes */
generic KiB : @a::(integral,numeric) = 1024
@@ -8,4 +10,8 @@ pkg std =
generic EiB : @a::(integral,numeric) = PiB*1024
generic ZiB : @a::(integral,numeric) = EiB*1024
generic YiB : @a::(integral,numeric) = ZiB*1024
+
+ generic Sec : time = 1_000_000
+ generic Msec : time = 1_000
+ generic Usec : time = 1
;;