Stopwatch.StartNew() code example Example: stopwatch c# var timer = new Stopwatch(); timer.Start(); // do stuff timer.Stop(); }