realbasic-nug
[Top] [All Lists]

Re: Microseconds rollover?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Microseconds rollover?
From: Charles Yeomans <charles at declareSub dot com>
Date: Thu, 31 Aug 2006 10:18:28 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <416AE383-8C7E-4DCB-8C20-DE1CCDCFBDA4 at mobleybros dot com>

On Aug 31, 2006, at 2:41 AM, Phil M wrote:

I tried looking this up on the internet, but there was just too much noise (false hits)... so I was hoping that someone here would know the answer.

How frequently can a computer rollover the Microseconds value?

What is the best way to account for rollover for time critical apps?


The largest integer value that a double without approximation can hold is something like 10^15, so I guess you'd expect overflow every 10^9 seconds or so - about every 31 years. Probably you should test to be sure.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>