diff options
| author | 2024-07-18 08:04:58 -0400 | |
|---|---|---|
| committer | 2024-07-18 08:04:58 -0400 | |
| commit | 7ddce488e074c3f052949ba513a340446cea86e9 (patch) | |
| tree | d546332da78d3cb061c9b98c72f6b39c8a394b2e /bench/src/ziglyph_codepoint.zig | |
| parent | Merge pull request 'refactor CodePoint.Iterator into a reusable fn' (#11) fro... (diff) | |
| download | zg-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.zig | 2 |
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 | } |