1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: time.wait() => time.sleep()

This commit is contained in:
Alexander Medvednikov
2021-02-27 20:41:06 +03:00
parent be4a2e17d3
commit 3a2d696fac
42 changed files with 76 additions and 67 deletions

View File

@ -107,7 +107,7 @@ pub fn (mut ctx Context) run() ? {
init_called = true
}
if sleep_len > 0 {
time.wait(sleep_len * time.microsecond)
time.sleep(sleep_len * time.microsecond)
}
if !ctx.paused {
sw.restart()