From: Giuliano Colla <giuliano.colla@fastwebnet.it>
To: linux-rt-users@vger.kernel.org
Subject: CLOCK_MONOTONIC issue
Date: Mon, 22 Jun 2015 13:06:28 +0200 [thread overview]
Message-ID: <5587EC34.2070808@fastwebnet.it> (raw)
Hi all,
in order both to profile the performance of my rt threads, and to
perform timed operations (such as sem_timedwait), I'm using the
clock_gettime() function.
Using as a parameter CLOCK_REALTIME everything appears to work as
expected, but if I attempt to use CLOCK_MONOTONIC (which should be a
more reliable timing source, from what I read), I get bogus times.
This occurs on different platforms, and with different kernel
versions/rt patch. (3.10.10-rt7 - 3.10.67-rt71 - 3.12.31-rt45).
Am I missing something obvious, such as a kernel misconfiguration, or
this is something to be expected?
Any hint will be appreciated.
Thanks in advance,
Giuliano
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
next reply other threads:[~2015-06-22 11:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 11:06 Giuliano Colla [this message]
2015-06-22 11:40 ` CLOCK_MONOTONIC issue Richard Cochran
2015-06-22 12:42 ` Giuliano Colla
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=5587EC34.2070808@fastwebnet.it \
--to=giuliano.colla@fastwebnet.it \
--cc=linux-rt-users@vger.kernel.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.