Divya Bettampady(deleted)
|
|
Divya Bettampady(deleted)
05/25/2015 1:16 AM
post113854
|
Hello Oleg,
I measure the timer interval uses kernel traces captured using tracelogger.
Thanks,
Divya
|
|
|
Oleg Bolshakov
05/25/2015 10:34 AM
post113858
|
Hi Divya,
You asked question in QNX 4 project. Please ask it in QNX Neutrino (QNX 6) project.
Respectfully,
Oleg
25 мая 2015 г., в 8:15:37, Divya Bettampady <community-noreply@qnx.com> написал:
> Hello Oleg,
>
> I set the timer parameters as shown below:
>
> struct itimerspec itime;
> struct _pulse pl;
> int rcvid;
> float ms_interval = 5.3;
>
> itime.it_value.tv_sec = 0;
> itime.it_value.tv_nsec = ms_interval * 1000000;
> itime.it_interval.tv_sec = 0;
> itime.it_interval.tv_nsec = ms_interval * 1000000;
> timer_settime(timer_id, 0, &itime, NULL);
>
> while(1)
> {
> rcvid = MsgReceive(chid, &pl, sizeof(pl), NULL);
> if (rcvid == 0)
> { /* we got a pulse */
> if (pl.code == TIMER_START_PULSE)
> {
> printf("we got a pulse from our timer\n");
> }
> }
> }
>
>
> Thanks,
> Divya
>
>
>
> _______________________________________________
>
> QNX4 Community Support
> http://community.qnx.com/sf/go/post113853
> To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com
|
|
|