From: Juergen Gross <jgross@suse.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>,
Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
Dario Faggioli <dario.faggioli@citrix.com>
Subject: Re: PRI_stime
Date: Tue, 20 Oct 2015 10:22:08 +0200 [thread overview]
Message-ID: <5625F9B0.4030403@suse.com> (raw)
In-Reply-To: <CAFLBxZaaf-W2myaoAabbco-fq21Ji0H3vYOksns_5F7+s-rXPQ@mail.gmail.com>
On 10/20/2015 10:10 AM, George Dunlap wrote:
> On Tue, Oct 20, 2015 at 7:26 AM, Jan Beulich <JBeulich@suse.com> wrote:
>> George, Dario,
>>
>> it being mostly used in scheduler code, and me considering it quite a
>> bit easier to compare such big numbers when shown in hex I wonder:
>> Do you prefer this to stay PRId64, or would you accept it to be
>> changed to PRIx64 (allowing it to be used in a few other places)?
>
> Personally I've never taken the time to familiarize myself with the
> magnitude of hex numbers vs decimal numbers; so in the case of time, I
> could easily see that 10000000 nanoseconds is about 1ms; but I don't
A good example for doing it in hex. Less digits are less error prone.
Your example would translate to 10ms. :-)
> have a good sense of how long 0x1000000 nanoseconds is. The fact that
0x100000 is about 1 million. This helps a lot to get an idea of the
magnitude.
> our times are based on base 10 instead of base 2 is I think as good an
> argument as any for leaving it as a decimal.
>
> But I wouldn't oppose the change if Dario (or others) thought x64 was
> the way to go.
+1 for hex.
Juergen
next prev parent reply other threads:[~2015-10-20 8:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 6:26 PRI_stime Jan Beulich
2015-10-20 8:10 ` PRI_stime George Dunlap
2015-10-20 8:22 ` Juergen Gross [this message]
2015-10-20 8:34 ` PRI_stime Jan Beulich
2015-10-20 9:46 ` PRI_stime Andrew Cooper
2015-10-20 9:59 ` PRI_stime Jan Beulich
2015-10-20 10:18 ` PRI_stime Dario Faggioli
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=5625F9B0.4030403@suse.com \
--to=jgross@suse.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=dario.faggioli@citrix.com \
--cc=xen-devel@lists.xenproject.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.