All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Query with rtdm_clock_read
@ 2015-08-14 15:30 ashwin damle
  2015-08-14 16:29 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: ashwin damle @ 2015-08-14 15:30 UTC (permalink / raw)
  To: Xenomai

Hi,

I got Xenomai 3.0-rc4 working.

I wish to measure time between execution of two functions using
rtdm_clock_read.in a real time thread.

Pseudo code is like below.
.....
start = rtdm_clock_read();

foo0();
foo1();

stop = rtdm_clock_read();

execution_time= stop - start;
.....

Since rtdm_clock_read is still valid in Xenomai3, I plan to use the same.
However, I cannot find the API. I am surely missing something. I searched
.h files in include/rtdm however, I cannot locate it.

Just wanted to know if I am moving in the right direction intending to use
rtdm_clock_read or should I use other.

Please let me know.

-- 
Ashwin M. Damle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Query with rtdm_clock_read
  2015-08-14 15:30 [Xenomai] Query with rtdm_clock_read ashwin damle
@ 2015-08-14 16:29 ` Philippe Gerum
  2015-08-14 16:38   ` ashwin damle
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2015-08-14 16:29 UTC (permalink / raw)
  To: ashwin damle, Xenomai

On 08/14/2015 05:30 PM, ashwin damle wrote:
> Hi,
> 
> I got Xenomai 3.0-rc4 working.
> 
> I wish to measure time between execution of two functions using
> rtdm_clock_read.in a real time thread.
> 
> Pseudo code is like below.
> .....
> start = rtdm_clock_read();
> 
> foo0();
> foo1();
> 
> stop = rtdm_clock_read();
> 
> execution_time= stop - start;
> .....
> 
> Since rtdm_clock_read is still valid in Xenomai3, I plan to use the same.
> However, I cannot find the API. I am surely missing something. I searched
> .h files in include/rtdm however, I cannot locate it.
> 
> Just wanted to know if I am moving in the right direction intending to use
> rtdm_clock_read or should I use other.
> 

RTDM is a kernel-based API, you can only access it from a driver by
including rtdm/driver.h.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] Query with rtdm_clock_read
  2015-08-14 16:29 ` Philippe Gerum
@ 2015-08-14 16:38   ` ashwin damle
  0 siblings, 0 replies; 3+ messages in thread
From: ashwin damle @ 2015-08-14 16:38 UTC (permalink / raw)
  To: Xenomai

Hello,

Thank you very much.

I will see documentation. I am a beginner.

Thanks a ton for your reply!

Thanks.
Ashwin

On 14 August 2015 at 21:59, Philippe Gerum <rpm@xenomai.org> wrote:

> On 08/14/2015 05:30 PM, ashwin damle wrote:
> > Hi,
> >
> > I got Xenomai 3.0-rc4 working.
> >
> > I wish to measure time between execution of two functions using
> > rtdm_clock_read.in a real time thread.
> >
> > Pseudo code is like below.
> > .....
> > start = rtdm_clock_read();
> >
> > foo0();
> > foo1();
> >
> > stop = rtdm_clock_read();
> >
> > execution_time= stop - start;
> > .....
> >
> > Since rtdm_clock_read is still valid in Xenomai3, I plan to use the same.
> > However, I cannot find the API. I am surely missing something. I searched
> > .h files in include/rtdm however, I cannot locate it.
> >
> > Just wanted to know if I am moving in the right direction intending to
> use
> > rtdm_clock_read or should I use other.
> >
>
> RTDM is a kernel-based API, you can only access it from a driver by
> including rtdm/driver.h.
>
> --
> Philippe.
>



-- 
Ash.D
Institute of Infinite Tension,Bombay

Support the

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-14 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14 15:30 [Xenomai] Query with rtdm_clock_read ashwin damle
2015-08-14 16:29 ` Philippe Gerum
2015-08-14 16:38   ` ashwin damle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.