I was using a Juce Timer to pick up frames from a camera. I noticed, however, that the Timer only triggers every 16 msecs or so on Windows, even if I set it to trigger every 5 msecs. The camera frames are coming in every 10 msecs though. So, I need to write my own Timer class that triggers more often.
I was thinking about the best way to do this, but before I do anything I thought it would be a good idea to try to understand why it is that the Timer is only triggering every 16 msecs even when I tell it to trigger more frequently. I was considering creating a Thread and having it sleep for a few msecs. But perhaps this is what the Timer is doing already, and it’s just not being woken up from its sleep at the time requested. So, I would appreciate any clues explaining the Timer classes behavior as well as tips regarding how I could create a Timer class that triggers more often.