static void Main(string[] args) { // long timeBefore = System.Environment.TickCount; Program p = new Program(); // p.Rsafinishsample(); // long timeAfter = System.Environment.TickCount; // Console.WriteLine(timeAfter - timeBefore); Console.WriteLine("before modification"); long timeBefore = System.Environment.TickCount; p.Rsafinishcomplete(); long timeAfter = System.Environment.TickCount; long timeequal = timeAfter - timeBefore; timeequal /= 6000; Console.WriteLine(timeequal); }