mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
stopwatch: auto_start option, make pause cumulative
This commit is contained in:
@@ -80,7 +80,7 @@ fn measure(cmd string) int {
|
||||
exec(cmd)
|
||||
}
|
||||
println('Building...')
|
||||
sw := time.new_stopwatch()
|
||||
sw := time.new_stopwatch({})
|
||||
exec(cmd)
|
||||
return int(sw.elapsed().milliseconds())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user