M
MFRASER
What is the best way to test how long a method takes to load?
I am currently doing the following
System.DateTime aStartNow = DateTime.Now;
// do something
System.DateTime aEndNow= DateTime.Now;
System.TimeSpan TimeDiff = aEndNow- aStartNow ;
//Log TimeSpan
I am currently doing the following
System.DateTime aStartNow = DateTime.Now;
// do something
System.DateTime aEndNow= DateTime.Now;
System.TimeSpan TimeDiff = aEndNow- aStartNow ;
//Log TimeSpan