[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] setitimer() equivalent...
Kiran Garimella wrote:
> Right now all I want to do is translate my program into the appropriate
> rtlinux calls. However, I haven't found the equivalent of setitimer()
> in the man pages. Is there one, or is there an entirely different
> mechanism for all this? And is there some tutorial where I can learn
> about all this?
I'm not an expert.
But look at rtlinux/include/rtl_time.h.
I think you can do this:
clockid_t timer = rtl_getbestclock(0);
timer->settimermode(timer, RTL_CLOCK_MODE_ONESHOT);
timer->handler = my_handler;
timer->settimer(timer, my_interval /* nanoseconds, I believe */);
--Gordon