realbasic-nug
[Top] [All Lists]

Re: Tenths of seconds in Date

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Tenths of seconds in Date
From: Dave Shirk <dave at pamlicosounds dot com>
Date: Fri, 29 Jun 2007 01:41:22 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <060666F1A6465342B2321B4C92333D7A549BE8 at UEAEXCHCLUS01 dot UEA dot AC dot UK> <DD2C55FD-16D9-497B-967B-E53DB91779C8 at pamlicosounds dot com> <8B1C33DA-2ADE-47C6-BF4B-CFF2E697C40E at tolisgroup dot com>
On Jun 29, 2007, at 12:09 AM, Tim Jones wrote:

> On Jun 28, 2007, at 8:44 PM, Dave Shirk wrote:
>
>> On Jun 28, 2007, at 9:00 AM, Herd Richard Dr (ENV) wrote:
>>
>>> Yes.  The TotalSeconds property of the Date class is a double.
>>> So you can get timing to thousandths of a second.  It's fine on
>>> Windows
>
> Dave -
>
> Consider using a timer set to mode 2 with a period of 100ms to change
> a global counter.  Then use another timer to check for every 'y'
> 100ms to gain the granularity you're looking for.  NOt elegant, but
> it'll get you to your level of timing pretty closely.
>
> HTH,
>
> Tim

Tim,

That is exactly what I am doing.  For now it is a close enough fake  
out ;-)

I am considering putting in a feature request for Date.FracSec or such.

Thanks for your reply,

Dave

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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