mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: fix references to time.wait -> time.sleep
This commit is contained in:
@@ -31,10 +31,10 @@ import benchmark
|
||||
|
||||
mut b := benchmark.start()
|
||||
// your code section 1 ...
|
||||
time.wait(1500 * time.millisecond)
|
||||
time.sleep(1500 * time.millisecond)
|
||||
b.measure('code_1')
|
||||
// your code section 2 ...
|
||||
time.wait(500 * time.millisecond)
|
||||
time.sleep(500 * time.millisecond)
|
||||
b.measure('code_2')
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user