Skip to content

Commit

Permalink
Fix conversion of clock() return value to actual time units
Browse files Browse the repository at this point in the history
  • Loading branch information
turol committed Aug 24, 2024
1 parent 8b4cc48 commit 58f2ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disasmtool/disasmtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ handle_disasm(
if (Options->Stats)
{
printf("Disassembled %llu instructions in %llums, %4.4f instructions/second, %4.6f clocks/instruction, average ilen %4.6f bytes\n",
icount, end - start, icount / (double)(end - start) * 1000, itotal / (double)icount, tilen / (double)ticount);
icount, (end - start) * 1000 / CLOCKS_PER_SEC, icount / ((double)(end - start) / CLOCKS_PER_SEC), itotal / (double)icount, tilen / (double)ticount);
}
}

Expand Down

0 comments on commit 58f2ca2

Please sign in to comment.