I have a very simple timer but seems it doesn’t run on time.
I initialize some code as follows:
m_Timer = new GT.Timer(1); //set to interrupt every 1ms
m_Timer.Tick += new GT.Timer.TickEventHandler(timer_Tick);
m_ExposeTime = 10000; // 10 seconds
(m_CountTicks and m_ExposeTime are ushort type)
Then, I start the timer but instead of hitting my breakpoint in 10 seconds, it takes
about 30 seconds!!
I also removed the breakpoint and just printed a message out to debug but still 30 seconds. I don’t believe I’m doing anything wrong, but maybe someone can see something that isn’t right???
Should I expect this timer to be accurate???
private void timer_Tick(GT.Timer timer)
m_CountTicks += 1;
if (m_CountTicks >= m_ExposeTime)
setIOs(false); ---------> I have a breakpoint here