From: Pintu Kumar <pintu.ping@gmail.com>
To: "Xenomai@xenomai.org" <xenomai@xenomai.org>,
Greg Gallagher <greg@embeddedgreg.com>,
Jan Kiszka <jan.kiszka@web.de>, Philippe Gerum <rpm@xenomai.org>,
Jan Kiszka <jan.kiszka@siemens.com>
Subject: [Xenomai] [NATIVE API] Xenomai native API equivalent for clock_gettime
Date: Thu, 1 Mar 2018 18:07:34 +0530 [thread overview]
Message-ID: <CAOuPNLiNGpnvWcj_6xZV0FWZfqMgi3Xc61GaHfZP1N58TYFYcQ@mail.gmail.com> (raw)
Hi,
I have one question about Xenomai native API
1) What is the native API equivalent for clock_gettime() ?
I have seen this Xenomai native API guide but I could not find it.
https://xenomai.org/documentation/xenomai-2.6/pdf/native-api.pdf
I have a simple pthread based POSIX application which I converted to native API.
But for calculating the latency difference I using this in both case:
clock_gettime(CLOCK_MONOTONIC, &now);
But I observed that if I use only NATIVE skin, I could not see any
latency difference.
However, if I use POSIX skin I see the latency difference.
So, I want to replace clock_gettime() with native API to find the
exact difference with native skin.
Or, if there is any other better way to measurement latency difference
between POSIX API and native API, please let me know.
Thank You!
Regards,
Pintu
next reply other threads:[~2018-03-01 12:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 12:37 Pintu Kumar [this message]
2018-03-01 17:02 ` [Xenomai] [NATIVE API] Xenomai native API equivalent for clock_gettime Greg Gallagher
2018-03-08 13:14 ` Pintu Kumar
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=CAOuPNLiNGpnvWcj_6xZV0FWZfqMgi3Xc61GaHfZP1N58TYFYcQ@mail.gmail.com \
--to=pintu.ping@gmail.com \
--cc=greg@embeddedgreg.com \
--cc=jan.kiszka@siemens.com \
--cc=jan.kiszka@web.de \
--cc=rpm@xenomai.org \
--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.