@Statsman1 Thanks for letting me know about your success with the program.
Just for your info, the two lines immediately following the FOR reps = 1 to 20 statement can be moved to just outside the loop (i.e. place line before FOR...)
The "frequency" relates to a conversion factor to convert (eventually) computer crystal cycles to 1 second counts - as it is highly unlikely that you would change the clock speed of the computer (or that the processor + hardware is even capable to achieve this on "older computers") - it only needs to be "determined once" (I think the value for all MS compatible computers is 1000000 (or 10000000) - it is actually not determined by windows in any manner I think).
The "StartingCount" I believe relates to clock counts (as 100 nano-second counts) since the computer was restarted (or is it since JAN 1 1972 or something)? In either case for your computer session (i.e. since you did a restart) - likewise it only has to be established once per run.
In fact because you are measuring a time interval of an event (race time) - you are only working with the DIFFERENCE (from start to finish) - so the subtraction of StartingCount (in both TIMERe instances cancel out mathematically). Similarly with Frequency (which can be taken as being CONSTANT) - that too can be taken out (i.e. program calculate using number of 100 nanosecond counts (= Performance count) and when you finally report (print/display the results then divide Difference in PerformanceCounts by 10000000 to convert to seconds. You may gain a timing improvement of 1 to 10 nanoseconds!. :)
As far as the outliers go - and I am still trying to find a work-around to the problem - in my case (referring to reply # 180 mentioned above) - the outlier WAS usually NOT the first timing in any of my loops (which had a number of code line between timing points) - which is a "killer" in trying to determine which code module was "faster".
So if the outlier occurred within your group of events (rather than start) - it might have the effect (say) of a horse "jumping the rails" to take a short cut to the finish line (or to go back to the starting gate). :)