From 46e4317643cd29623d7c294465ef69d2637a5343 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 20 Jan 2023 17:22:43 +0200 Subject: [PATCH] benchmark: adjust the documentation for Benchmark.measure --- vlib/benchmark/benchmark.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/benchmark/benchmark.v b/vlib/benchmark/benchmark.v index c89e942244..66a2973f3e 100644 --- a/vlib/benchmark/benchmark.v +++ b/vlib/benchmark/benchmark.v @@ -119,7 +119,7 @@ pub fn start() Benchmark { 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 { b.ok() res := b.step_timer.elapsed().microseconds()