summaryrefslogtreecommitdiff
path: root/bench/src/ziglyph_codepoint.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_codepoint.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_codepoint.zig')
-rw-r--r--bench/src/ziglyph_codepoint.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/src/ziglyph_codepoint.zig b/bench/src/ziglyph_codepoint.zig
index 4265d97..7fe4028 100644
--- a/bench/src/ziglyph_codepoint.zig
+++ b/bench/src/ziglyph_codepoint.zig
@@ -23,5 +23,5 @@ pub fn main() !void {
23 var timer = try std.time.Timer.start(); 23 var timer = try std.time.Timer.start();
24 24
25 while (iter.next()) |_| result += 1; 25 while (iter.next()) |_| result += 1;
26 std.debug.print("Ziglyph CodePointIterator: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap() / std.time.ns_per_ms) }); 26 std.debug.print("Ziglyph CodePointIterator: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap()) });
27} 27}