Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - TimerTimeout cannot work properly : (1 Item)
   
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?