All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: ashwin damle <ashwindamle@gmail.com>, Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Query with rtdm_clock_read
Date: Fri, 14 Aug 2015 18:29:33 +0200	[thread overview]
Message-ID: <55CE176D.3020902@xenomai.org> (raw)
In-Reply-To: <CAC-NLwzELS71XpnoR24fiqnSVzCv=xvcJ8SoBW4ni=FG9-tXyw@mail.gmail.com>

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.


  reply	other threads:[~2015-08-14 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-14 15:30 [Xenomai] Query with rtdm_clock_read ashwin damle
2015-08-14 16:29 ` Philippe Gerum [this message]
2015-08-14 16:38   ` ashwin damle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55CE176D.3020902@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=ashwindamle@gmail.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.