Alternate Timing Styles
The CodeSiteEx.Timer routine accepts an optional Style parameter.
By default, this parameter is set to tsMicroSeconds, allowing all timings to be processed in microseconds. So the following line of code:
CodeSiteEx.Timer;
is equivalent to:
CodeSiteEx.Timer(tsMicroSeconds);
But suppose you want to trace a method in other timing units? CodeSiteEx supports three methods of profiling, microseconds, stopwatch-style clock format, and CPU cycles.
CodeSiteEx.Timer(tsMicroSeconds);
The output from this is in the format of:
Timed at 1.26 microseconds
CodeSiteEx.Timer(tsClock);
The output from this is in the format of:
Timed at 00:03:46.819234
CodeSiteEx.Timer(tsClockCycles);
The output from this is in the format of:
Timed at 1880 clock cycles