diff --git a/examples/src/03-01.zig b/examples/src/03-01.zig index f92956c..1eb9488 100644 --- a/examples/src/03-01.zig +++ b/examples/src/03-01.zig @@ -15,6 +15,6 @@ pub fn main() !void { const elapsed_ns: f64 = @floatFromInt(now.since(start)); print("Time elapsed in expensive_function() is: {d:.3}ms", .{ - elapsed_ns / time.ns_per_s, + elapsed_ns / time.ns_per_ms, }); } diff --git a/src/03-01-elapsed-time.md b/src/03-01-elapsed-time.md index cf41ac6..9aa591b 100644 --- a/src/03-01-elapsed-time.md +++ b/src/03-01-elapsed-time.md @@ -22,7 +22,7 @@ pub fn main() !void { const elapsed_ns: f64 = @floatFromInt(now.since(start)); print("Time elapsed in expensive_function() is: {d:.3}ms", .{ - elapsed_ns / time.ns_per_s, + elapsed_ns / time.ns_per_ms, }); } ```