HENG HUANG GUAN
|
TimerTimeout cannot work properly
|
HENG HUANG GUAN
03/23/2010 11:57 AM
post50241
|
TimerTimeout cannot work properly
Good Day,
Any one here can help me, why the timer unable to count for 10sec?
My code as below ...
#include <sys/neutrino.h>
#include <sys/siginfo.h>
struct sigevent TimerEvent;
UINT64 TimeoutSetTime, TimeOutRemTime, OneSecond;
SIGEV_INTR_INIT (&TimerEvent);
OneSecond = 1000000000;
TimeoutSetTime = 10 * OneSecond;
TimerTimeout(CLOCK_REALTIME, _NTO_TIMEOUT_INTR, &TimerEvent, &TimeoutSetTime, NULL);
InterruptWait(0,NULL);
printf ("10 second timer value\n");
Everytime i run this code always need to take around 27sec only will perform the printf function. Regardless changing
any value will also take 27sec.
May i know what happen on my code?
|
|
|