Stopwatch watch = Stopwatch.StartNew(); doOrther(); watch.Stop(); Console.WriteLine(watch.ElapsedMilliseconds);