The timer unit in line_profiler defaults to 3.66538e-07 s on my computer. This makes it difficult for me to translate results into seconds. If a function took 287643 timer units to complete, I have to do math in order to actually understand that number.
In other words, I want to modify the reporting layer to output more user friendly times.
Approach options:
Optional argument to set timer unit. e.g. -u 1e-6
Optional argument to show times in ns, ms, us, s by default. e.g. 346.2ms, 1.2s, 999.0us instead of them all showing up with the same units.
The timer unit in line_profiler defaults to 3.66538e-07 s on my computer. This makes it difficult for me to translate results into seconds. If a function took 287643 timer units to complete, I have to do math in order to actually understand that number.
In other words, I want to modify the reporting layer to output more user friendly times.
Approach options:
@rkern thoughts?