mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
testing: always show benchmarks
This commit is contained in:

committed by
Alexander Medvednikov

parent
9158ba4640
commit
7cf7215557
@@ -44,10 +44,6 @@ pub fn new_benchmark() Benchmark{
|
||||
}
|
||||
}
|
||||
|
||||
pub fn now() i64 {
|
||||
return time.ticks()
|
||||
}
|
||||
|
||||
pub fn (b mut Benchmark) stop() {
|
||||
b.bench_end_time = benchmark.now()
|
||||
}
|
||||
@@ -89,3 +85,8 @@ fn (b mut Benchmark) tdiff_in_ms(s string, sticks i64, eticks i64) string {
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
fn now() i64 {
|
||||
return time.ticks()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user