Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# performance timer

using System.Diagnostics;
// ...

Stopwatch sw = new Stopwatch();

sw.Start();

// ...

sw.Stop();

Console.WriteLine("Elapsed={0}",sw.Elapsed);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #performance #timer
ADD COMMENT
Topic
Name
8+9 =