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

@ -80,6 +80,6 @@ fn (mut game Game) update_model() {
fn (mut game Game) run() {
for {
game.update_model()
time.wait(16 * time.millisecond) // 60fps
time.sleep(16 * time.millisecond) // 60fps
}
}

View File

@ -13,6 +13,6 @@ fn print_message() {
fn main() {
for {
print_message()
time.wait(500 * time.millisecond)
time.sleep(500 * time.millisecond)
}
}