/* * (c)2002 by Daniel Mettler * * Released under the terms and conditions of the GNU GPL v2 (http://www.gnu.org/copyleft/gpl.html) * */ class LoopMono { public static void Main() { int noOfLoops = 100000; long ticks1 = System.DateTime.Now.Ticks; for (int x = 0; x < noOfLoops; x++) { System.Console.WriteLine("Hello World!"); } long ticks2 = System.DateTime.Now.Ticks; System.Console.WriteLine("The number of ms for " + noOfLoops + " loops: " + (ticks2 - ticks1)/10000); } }