static void Main(string[] args) { Class1 cls = new Class1(); Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); cls.add(2, 34); //cls.print(2, 34); stopWatch.Stop(); Console.Write(stopWatch.ElapsedTicks); Console.Read(); }