summaryrefslogtreecommitdiff
path: root/bench/src/ziglyph_width.zig
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-07-18 08:04:58 -0400
committerGravatar Jose Colon Rodriguez2024-07-18 08:04:58 -0400
commit7ddce488e074c3f052949ba513a340446cea86e9 (patch)
treed546332da78d3cb061c9b98c72f6b39c8a394b2e /bench/src/ziglyph_width.zig
parentMerge pull request 'refactor CodePoint.Iterator into a reusable fn' (#11) fro... (diff)
downloadzg-7ddce488e074c3f052949ba513a340446cea86e9.tar.gz
zg-7ddce488e074c3f052949ba513a340446cea86e9.tar.xz
zg-7ddce488e074c3f052949ba513a340446cea86e9.zip
Fixed benchmark duration printing
Diffstat (limited to 'bench/src/ziglyph_width.zig')
-rw-r--r--bench/src/ziglyph_width.zig2
1 files changed, 1 insertions, 1 deletions
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 {
26 const width = try display_width.strWidth(line, .half); 26 const width = try display_width.strWidth(line, .half);
27 result += width; 27 result += width;
28 } 28 }
29 std.debug.print("Ziglyph display_width.strWidth: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap() / std.time.ns_per_ms) }); 29 std.debug.print("Ziglyph display_width.strWidth: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap()) });
30} 30}