From: Cyril Hrubis <chrubis@suse.cz>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] sigtimedwait: use gtod instead of time
Date: Mon, 18 May 2015 09:53:01 +0200 [thread overview]
Message-ID: <20150518075301.GB2044@rei> (raw)
In-Reply-To: <56cb7d597d907a2e7168d912f3abf4fafce2fea1.1431615152.git.jstancek@redhat.com>
Hi!
> Quoting https://lkml.org/lkml/2015/2/19/384
> "The idea that time() would be ok as being HZ granular, and its
> been this way since 2.6.23. Thus you have a < HZ sized window
> where gettimeofday() will return the next second before time()
> gets updated by the tick."
Looks good.
Using clock_gettime() with monotonic clock would be even better but for
that we would have to create an abstract time measuring interface that
falls back to gettimeofday() if timers could not be used...
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2015-05-18 7:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-14 14:58 [LTP] [PATCH] sigtimedwait: use gtod instead of time Jan Stancek
2015-05-18 7:53 ` Cyril Hrubis [this message]
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=20150518075301.GB2044@rei \
--to=chrubis@suse.cz \
--cc=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox