Stop watch
i am trying to create a simple stop watch that constantly displays the time changing until you press stop. but i am having trouble. can anyone help with a tutorial or point me on a good path to accomplish this?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Felipe RamosRank #1,409 · 1.2K reputationPosted Sep 6, 2010, 11:22 AM EDT
System.Diagnostics.Stopwatch
The other is the the timer under the DirectX framework or their utility class.
Sam HobbsRank #107 · 20.5K reputationPosted Sep 6, 2010, 11:35 AM EDT
Dipal ChoksiRank #199 · 12K reputationPosted Sep 6, 2010, 1:15 PM EDT
http://www.c-sharpcorner.com/UploadFile/aaghany/StopWatchUsingCsharp11122005051620AM/StopWatchUsingCsharp.aspx
Felipe RamosRank #1,409 · 1.2K reputationPosted Sep 6, 2010, 7:24 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Sep 6, 2010, 7:56 PM EDT
You can reduce inaccuracies by not using a repeating interval for the timer. Instead, each time the timer event happens, stop the timer and start it again with the amount of time needed for the next tick of your clock.