1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-22 07:28:07 +00:00

Merge pull request #98 from turol/clock

Fix conversion of clock() return value to actual time units
This commit is contained in:
vlutas 2024-08-26 09:46:37 +03:00 committed by GitHub
commit ed19a468e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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