Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

stopwatch c#

  var timer = new Stopwatch();
  timer.Start();

  //B: Run stuff you want timed
  timer.Stop();

  TimeSpan timeTaken = timer.Elapsed;
  string foo = "Time taken: " + timeTaken.ToString(@"m:ss.fff"); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stopwatch
ADD COMMENT
Topic
Name
9+2 =