Timing code.

Simply embed the code to be timed between calls to sw.StartTimer and
sw.TotalTime (where sw.TotalTime just returns an integer - so be sure to
assign and/or display it somehow). See the example of timing Bubble Sort