count-down timer

.net, c#, timer

Solution

You want to use the StopWatch.

See this question for more detail.

Is DateTime.Now the best way to measure a function's performance?

Problem

My main problem is that I don't know how to search what I'm looking for in google,because I get different results(probably its not count-down timer). I want to calculate how much time a function takes to be executed.The instructions take a long time in seconds to be executed(seconds,not miliseconds). How to do it in C#/NET,example?

Original source

Related problems