Wriju's BLOG

.NET, Cloud and everything

.NET Framework 4.0 Newbie : Stopwatch.Restart()

In .NET Framework 4.0 Stopwatch.Restart() is new addition.


 


Stopwatch sw = new Stopwatch();


 


sw.Start();


 


//Do something


//….


//ERROR!!!


 


 


//Then Restart the Stopwatch


sw.Restart();


 


Namoskar!!!