Alternatively, maybe just not worry about it, since 2**53 microseconds
isn't hit until 2255. I hope to not be using Node then :-)

On Mon, Mar 5, 2012 at 9:43 AM, Micheil Smith <[email protected]>wrote:

> Yeah, you could do something like [seconds, microseconds], such that you
> could have precision on your values.
>
> – Micheil
>
> On 05/03/2012, at 2:32 PM, Dean Landolt wrote:
>
> >
> >
> > On Mon, Mar 5, 2012 at 8:51 AM, Ben Noordhuis <[email protected]>
> wrote:
> > On Mon, Mar 5, 2012 at 13:37, Bert Belder <[email protected]> wrote:
> > > Creating an addon that provides an uv_hrtime() binding would be a good
> > > cross-platform solution for this.
> >
> > I don't mind adding a `process.hrtime()` function, it would be useful
> > for benchmarks. The problem is that uv_hrtime() returns a 64 bits
> > unsigned integer, while JS numbers only have 53 bits of precision.
> >
> >
> > But a tuple of 2 JS numbers has 106. This wouldn't be the prettiest API
> but it would get the job done.
> >
> > --
> > Job Board: http://jobs.nodejs.org/
> > Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > You received this message because you are subscribed to the Google
> > Groups "nodejs" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to