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:
@@ -24,7 +24,7 @@ fn test_run() {
|
||||
break
|
||||
}
|
||||
os.system('ps -opid= -oppid= -ouser= -onice= -of= -ovsz= -orss= -otime= -oargs= -p $p.pid')
|
||||
time.sleep_ms(50)
|
||||
time.wait(50 * time.millisecond)
|
||||
i++
|
||||
}
|
||||
p.wait()
|
||||
|
||||
Reference in New Issue
Block a user