Gemalto is now part of the Thales Group, find out more.

You are here

What is the resolution of EHS6 timer? | Thales IoT Developer Community

August 31, 2015 - 4:39am, 3278 views

I want to define a 100ms timer:

Timer timer = new Timer();

 UserTimerTask timerTask = new UserTimerTask();

timer.schedule(timerTask, 0, 100);

and in userTimerTask, I will toggle a Led:

UpTime ++;

if (UpTime % 2 == 0) TurnRedLedOn();

else TurnRedLedOff();

but from oscilloscope, the led on/off time is about 200ms.

How can I get a precise timer?