slovo/tests/time-sleep.surface.lower
2026-05-22 08:38:43 +02:00

23 lines
511 B
Plaintext

program main
fn monotonic_self_equal() -> bool
local let now: i32
call std.time.monotonic_ms
binary =
var now
var now
fn sleep_zero_then_self_equal() -> bool
call std.time.sleep_ms
int 0
call monotonic_self_equal
fn main() -> i32
call std.time.sleep_ms
int 0
if
call monotonic_self_equal
int 0
int 1
test "monotonic value is self equal"
call monotonic_self_equal
test "sleep zero returns"
call sleep_zero_then_self_equal