All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregor Boirie <gregor.boirie@parrot.com>
To: <linux-iio@vger.kernel.org>
Subject: using monotonic clok for timstamping
Date: Wed, 3 Feb 2016 11:55:32 +0100	[thread overview]
Message-ID: <56B1DCA4.9050903@parrot.com> (raw)

Dear  all,

Our application relies on precise and monotonic timestamping of IMU 
samples (and other sensors).
I am wondering what reasons / use cases led to the choice of realtime 
clock to implement
iio_get_time_ns (not to mention time gaps that may be seen after wake up 
from sleep states).

As a dirty hack, I simply rewrote iio_get_time_ns on our platform. But I 
suspect it would be usefull as
a long term solution, to give userland the ability to choose a 
particular posix clock (realtime, monotonic,
etc...) on a per device and / or driver basis through a sysfs attribute 
for example.

I'd be glad to hear your suggestions. Best regards,
Grégor.

             reply	other threads:[~2016-02-03 11:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 10:55 Gregor Boirie [this message]
2016-02-03 11:22 ` using monotonic clok for timstamping Lars-Peter Clausen
2016-02-06 18:33   ` Jonathan Cameron
2016-02-08  9:55     ` Lars-Peter Clausen
2016-02-08 17:15       ` Jonathan Cameron
2016-02-09 11:06         ` Gregor Boirie
2016-02-09 14:19           ` Gregor Boirie
2016-02-09 20:49             ` Jonathan Cameron
2016-02-09 20:52           ` Lars-Peter Clausen
2016-02-09 21:02             ` Jonathan Cameron
2016-02-10  9:46             ` Gregor Boirie

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=56B1DCA4.9050903@parrot.com \
    --to=gregor.boirie@parrot.com \
    --cc=linux-iio@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.