Examples · learn/12-units · 185 of 339
sleep
tin run examples/learn/12-units/sleep.tinfn main() {
let start = now() // time since the program started, a Duration
sleep(20ms)
let took = now() - start
print(took >= 20ms)
} Examples · learn/12-units · 185 of 339
tin run examples/learn/12-units/sleep.tinfn main() {
let start = now() // time since the program started, a Duration
sleep(20ms)
let took = now() - start
print(took >= 20ms)
}