mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
benchmark: adjust the documentation for Benchmark.measure
This commit is contained in:
parent
d2bde39347
commit
46e4317643
@ -119,7 +119,7 @@ pub fn start() Benchmark {
|
|||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
// measure prints the current time spent doing `label`, since the benchmark was started.
|
// measure prints the current time spent doing `label`, since the benchmark was started, or since its last call
|
||||||
pub fn (mut b Benchmark) measure(label string) i64 {
|
pub fn (mut b Benchmark) measure(label string) i64 {
|
||||||
b.ok()
|
b.ok()
|
||||||
res := b.step_timer.elapsed().microseconds()
|
res := b.step_timer.elapsed().microseconds()
|
||||||
|
Loading…
Reference in New Issue
Block a user