From 7ddce488e074c3f052949ba513a340446cea86e9 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Thu, 18 Jul 2024 08:04:58 -0400 Subject: Fixed benchmark duration printing --- bench/src/ziglyph_width.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/src/ziglyph_width.zig') diff --git a/bench/src/ziglyph_width.zig b/bench/src/ziglyph_width.zig index b923d24..590ac3e 100644 --- a/bench/src/ziglyph_width.zig +++ b/bench/src/ziglyph_width.zig @@ -26,5 +26,5 @@ pub fn main() !void { const width = try display_width.strWidth(line, .half); result += width; } - std.debug.print("Ziglyph display_width.strWidth: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap() / std.time.ns_per_ms) }); + std.debug.print("Ziglyph display_width.strWidth: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap()) }); } -- cgit v1.2.3