Skip to content

Commit

Permalink
Merge pull request #98 from turol/clock
Browse files Browse the repository at this point in the history
Fix conversion of clock() return value to actual time units
  • Loading branch information
vlutas authored Aug 26, 2024
2 parents 8b4cc48 + 58f2ca2 commit ed19a46
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 ed19a46

Please sign in to comment.