I'm trying to log, for code optimization and refactoring benefit, how long each of my application's subroutines take to process (i.e. between last and first code line).
Most subs execute in less than one second, but I'd to still like to know if one is taking 0.25 sec vs. 0.9 sec. As well as, say, if one's taking 1.7 or 4.34 seconds.
Seems my only option is to calculate difference between end and start times in ticks and format result to "ss.SS".
Would prefer, however, that the Period type just also returned a Milliseconds property...and am surprised it does not.
Most subs execute in less than one second, but I'd to still like to know if one is taking 0.25 sec vs. 0.9 sec. As well as, say, if one's taking 1.7 or 4.34 seconds.
Seems my only option is to calculate difference between end and start times in ticks and format result to "ss.SS".
Would prefer, however, that the Period type just also returned a Milliseconds property...and am surprised it does not.