profdump icon indicating copy to clipboard operation
profdump copied to clipboard

Function times shouldn't be shown in seconds when CPU frequency is unknown

Open AntonMeep opened this issue 6 years ago • 1 comments

Even though #3 fixes that problem when profdump just dies not finding ticks/second, profdump will now show times assuming 1 tick being 1 ms on a 1GHz CPU. This isn't correct.

AntonMeep avatar Jul 24 '18 20:07 AntonMeep

notice: Tick do not mean processor clock cycle

  • On MS Windows, there are 10,000 ticks in a millisecond (see http://msdn.microsoft.com/en-us/library/system.datetime.ticks.aspx ).

  • On Linux, the number of clock ticks per second can be obtained using sysconf(_SC_CLK_TCK);. See e.g. http://linux.die.net/man/2/times

bioinfornatics avatar Jan 09 '19 12:01 bioinfornatics