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_case.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bench/src/ziglyph_case.zig') diff --git a/bench/src/ziglyph_case.zig b/bench/src/ziglyph_case.zig index 2b49e5a..f6dfbc1 100644 --- a/bench/src/ziglyph_case.zig +++ b/bench/src/ziglyph_case.zig @@ -27,7 +27,7 @@ pub fn main() !void { const lower = try ziglyph.toLowerStr(allocator, line); result += upper.len + lower.len; } - std.debug.print("Ziglyph toUpperStr/toLowerStr: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap() / std.time.ns_per_ms) }); + std.debug.print("Ziglyph toUpperStr/toLowerStr: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap()) }); result = 0; iter.reset(); @@ -37,5 +37,5 @@ pub fn main() !void { if (ziglyph.isUpperStr(line)) result += 1; if (ziglyph.isLowerStr(line)) result += 2; } - std.debug.print("Ziglyph isUpperStr/isLowerStr: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap() / std.time.ns_per_ms) }); + std.debug.print("Ziglyph isUpperStr/isLowerStr: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap()) }); } -- cgit v1.2.3