woosuk ahn
|
Timer using pulse has accuracy problem.
|
woosuk ahn
05/28/2014 7:47 PM
post110512
|
Timer using pulse has accuracy problem.
Hello,
I'm using QNX timer using pulse like below codes.
-------------------------------------------------------------------------------------------------------------------
SIGEV_PULSE_INIT( &sigevent, coid, SIGEV_PULSE_PRIO_INHERIT, TIMER_PULSE_CODE, timerId );
timer_create( CLOCK_REALTIME, &sigevent, &timer_id );
....
timer_settime( timer_id, 0, &itime, NULL);
-------------------------------------------------------------------------------------------------------------------
I have a question in this point.
If I set a timer to 200 ms, is it arrive in exact time?
I checked timer expiration time, it doesn't arrive in exaclty 200ms (250ms, 300ms ..) because of scheduling problem I
think.
I want to use exact timer in my system.
Can you recommend to solve this problem?
thanks.
|
|
|