I have a C# function that I want to measure execution time:
// save audit log using XML approach
if (records > 0) {
using(SQLRepository repo = new SQLRepository()) {
// this is one approach that I want to meassure
repo.SaveChangeLog(tw.ToString());
// this is second approach that I want to meassure
repo.SaveChangeLogApproach2(tw.ToString());
}
}
Is there something already in Visual Studio that I can use to get those executions times?