Example 1B
using System;
using System.Text;
using System.Diagnostics;
namespace System
{
class System
{
private static Stopwatch stopWatch= new Stopwatch() ;
static int Main()
{
Console.WriteLine("Started") ;
stopWatch.Start() ;
for (int Outerloop=0;Outerloop<100000;Outerloop++){
for (ulong a =0;a < 127; a++)
{
ulong b=(ulong)a;
}
}
stopWatch.Stop() ;
Console.WriteLine("Ended after "+ stopWatch.ElapsedMilliseconds.ToString() +"ms") ;
Console.ReadKey() ;
return 0;
}
}
}
On the next page : About this example.

