realbasic-nug
[Top] [All Lists]

Re: Microseconds rollover?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Microseconds rollover?
From: Terry Ford <tmford at shaw dot ca>
Date: Thu, 31 Aug 2006 14:16:22 -0700
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> <61C2F31C-C153-4998-91A8-E3F02F924EA3 at declareSub dot com> <EC8905A0-D1D5-41D5-BBEC-A9E73FFD4AEC at mobleybros dot com>

On Aug 31, 2006, at 9:08 AM, Phil M wrote:

On Aug 31, 2006, at 7:18 AM, Charles Yeomans wrote:

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.

Wow. Then I guess I don't have to worry about rollover with Microseconds. =)

There might be something else to consider. REALbasic may use a double to represent it but I have a strong feeling that the OS's storage of this data may be different. Take the Date Class for example. On Mac, the Total seconds are stored as an Uint32. This limits the Date to 2034 as far as I know. Also, on Win32, Microseconds is only resolved to milliseconds.

Perhaps this "Rollover" effect is something to consider as RS probably wouldn't mention it if it wasn't attainable.

Terry

_______________________________________________
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>


From  Thu 31 Aug 2006 21:21:05 +0000
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id D13DCAE2202; Thu, 31 Aug 2006 14:21:30 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on realxserve.local
X-Spam-Level: X-Spam-Status: No, score=-1.6 required=4.5 tests=BAYES_00,NO_REAL_NAME autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id 6F355AE21FB;
        Thu, 31 Aug 2006 14:21:28 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 031A3148D93D; Thu, 31 Aug 2006 16:21:16 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.192.81])
        by lists.realsoftware.com (Postfix) with ESMTP id CF2E0148D92B
        for <realbasic-nug at lists dot realsoftware dot com>;
        Thu, 31 Aug 2006 16:21:06 -0500 (CDT)
Received: from rmailcenter88.comcast.net ([204.127.197.188])
        by comcast.net (rwcrmhc11) with SMTP
        id <20060831212105m1100ivc2pe>; Thu, 31 Aug 2006 21:21:05 +0000
Received: from [204.14.71.111] by rmailcenter88.comcast.net;
        Thu, 31 Aug 2006 21:21:05 +0000
From: keatk at comcast dot net
To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Date: Thu, 31 Aug 2006 21:21:05 +0000
Message-Id: <083120062121 dot 17465 dot 
44F752C10002BE440000443922092299270B049D0199D30E0E05 at comcast dot net>
X-Mailer: AT&T Message Center Version 1 (Apr 11 2006)
X-Authenticated-Sender: a2FhLXdvcmxkQGNvbWNhc3QubmV0
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.2
Subject: Re: 2 issues with menu icons
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com


Whoever evaluated it did notseem to understand the full impact of the color 
issue:

The current report evaluation is:
Some values for green appear to work, such as RGB(0,200,0) but perhaps the values are off slightly.

Slightly off!!!!!!

IIRC some  bright green and bright yellow shades were just about totally 
invisble on OSX but show up just fine on Win2K... I made a spectrum (ROYGBIV) 
color menu with icons to test a class i was working on.

- Karen _______________________________________________
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>