Skip to content

Commit 3de5d3c

Browse files
committed
Shift the minute result of the benchmark to the left and add more space for minute counters if they're required.
1 parent 5e76c86 commit 3de5d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ end
2929
function BenchmarkEnd(start_time)
3030
local t = os.clock() - start_time
3131
local m, s = math.floor(t / 60), (t % 60)
32-
io.write(string.format("%03d:%010.7f\n", m, s))
32+
io.write(string.format("%6d:%010.7f\n", m, s))
3333
end
3434

3535
local function benchmark_pi()

0 commit comments

Comments
 (0)