mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: string interpolation field width support for large integers and utf8 strings
This commit is contained in:
@@ -218,7 +218,7 @@ pub fn (b &Benchmark) total_duration() i64 {
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
fn (b &Benchmark) tdiff_in_ms(s string, tdiff i64) string {
|
||||
if b.verbose {
|
||||
return '${tdiff/1000.0:9.3f} ms $s'
|
||||
return '${f64(tdiff)/1000.0:9.3f} ms $s'
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user