rafaelmaeuer
2/2/2017 - 5:30 PM

Calculate execution time - From http://stackoverflow.com/questions/14019510/calculate-the-execution-time-of-a-method

var watch = System.Diagnostics.Stopwatch.StartNew();
// the code that you want to measure comes here
watch.Stop();
var elapsedMs = watch.ElapsedMilliseconds;