Building Accurate Timers?
I'm trying to design a timer that can keep count of milliseconds using coroutines, but I noticed that a timer that uses a WaitForSeconds(0.001) is actually way slower than a timer that used a WaitForSeconds(1.0). 1 second is equal to 1,000 milliseconds, right? I have a millis
field that counts from 999 to 0 and the coroutine subtracts 1 from millis
every 0.001 seconds. 1000 * 0.001 = 1,so this time scale should be equivalent to one full second counting from 999, but its not, its way longer by almost 2 full seconds to reach 0.
Should I be doing something in Update counting the delta time of frames? I want accuracy down to exactly one one-thousandth of a second.
Your answer
Follow this Question
Related Questions
Using Time.deltaTime as a Timer 0 Answers
Hour Range - Do Something? 2 Answers
How to implement temporal bonus which isn't Monobehaviour ? 0 Answers
HELP! How to use a timer to set variables? 2 Answers
A StopWatch you can apply values to? 0 Answers