1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-21 23:18:09 +00:00

Fix conversion of clock() return value to actual time units

This commit is contained in:
Turo Lamminen 2024-08-24 22:19:14 +03:00
parent 8b4cc482b9
commit 58f2ca239c

View File

@ -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);
}
}