Answers for "c# get execution time of a method"

C#
1

c# measure execution time

var watch = System.Diagnostics.Stopwatch.StartNew();
// the code that you want to measure comes here
watch.Stop();
var elapsedMs = watch.ElapsedMilliseconds;
Posted by: Guest on January-25-2021

Code answers related to "c# get execution time of a method"

C# Answers by Framework

Browse Popular Code Answers by Language