Clean up core:time to be consistent across all platforms

This commit is contained in:
gingerBill committed 2022-05-12 15:47:24 +01:00
1 parent 97739da85a
commit f002857edc
11 files changed
+159 -138

No files matched your search

+4 -3
View File
@@ -1,15 +1,16 @@
//+private
//+build wasi
package time
import wasi "core:sys/wasm/wasi"
IS_SUPPORTED :: false
_IS_SUPPORTED :: false
now :: proc() -> Time {
_now :: proc "contextless" () -> Time {
return {}
}
sleep :: proc(d: Duration) {
_sleep :: proc "contextless" (d: Duration) {
}
_tick_now :: proc "contextless" () -> Tick {