After indexing these apps run the following 2 lines:
System.Console.Out.Write(end.Ticks - start.Ticks);
System.Console.Out.WriteLine(" total milliseconds");
However a Tick is 100 nanoseconds, not a millisecond.
One fix for this is to change the code to:
System.Console.Out.Write((end.Ticks - start.Ticks) /
(TimeSpan.TicksPerSecond *1.0));
System.Console.Out.WriteLine(" total seconds");