1
0
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:
Delyan Angelov 2023-01-20 17:22:43 +02:00
parent d2bde39347
commit 46e4317643
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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()