mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: consolidate the different sleep functions into time.wait(Duration) (#8853)
This commit is contained in:
@ -206,7 +206,7 @@ fn main() {
|
||||
fn (mut app App) run() {
|
||||
for {
|
||||
app.update()
|
||||
time.sleep_ms(app.timer_period_ms)
|
||||
time.wait(app.timer_period_ms * time.millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user