Index
2010-07-07 13:43william : Time Gentlemen ?
2010-07-07 14:05Lew : Re: Time Gentlemen ?
2010-07-10 08:12william : Re: Time Gentlemen ?
Back to top
Time Gentlemen ?

Author: william

Posted: 2010-07-07 13:43:53   Link

Forgive the Little joke, this is serious VFP.

Has anyone used Seconds() {VFP5.0} to replace

_bios_timeofday(1, &Clicks) in a C to VFP port.

What did you do with the transit over midnight, in the Seconds() case.

_bios returns a 1 if a cross has occurred since last read and a 0

otherwise, as well as stuffing the value in to the location pointed to

by &Clicks.

William Tormey

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1278524633.6012.9.camel@client-desktop

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 william
Back to top
Re: Time Gentlemen ?

Author: Lew

Posted: 2010-07-07 14:05:48   Link

These calcs work better with datetime()

------Original Message------

From: william

Sender: profoxtech-bounces@leafe.com

To: profoxtech@leafe.com

ReplyTo: profox@leafe.com

Subject: Time Gentlemen ?

Sent: Jul 7, 2010 1:43 PM

Forgive the Little joke, this is serious VFP.

Has anyone used Seconds() {VFP5.0} to replace

_bios_timeofday(1, &Clicks) in a C to VFP port.

What did you do with the transit over midnight, in the Seconds() case.

_bios returns a 1 if a cross has occurred since last read and a 0

otherwise, as well as stuffing the value in to the location pointed to

by &Clicks.

William Tormey

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1278524633.6012.9.camel@client-desktop

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

Report [OT] Abuse: http://leafe.com/reportAbuse/1278524633.6012.9.camel@client-desktop

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1635832478-1278525656-cardhu_decombobulator_blackberry.rim.net-1803584908-@bda836.bisx.prod.on.blackberry

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Lew
Back to top
Re: Time Gentlemen ?

Author: william

Posted: 2010-07-10 08:12:48   Link

Thank you for your response Lew.

I believe I need the Precision of Ticks (1/18.21 of Seconds), as the

code involved comes from MS C 5.1, and I am trying to emulate its action

entirely in VFP 5.0. Seconds() which resets to zero every midnight, is

claimed to have a resolution of 1 millisecond, except in NT where the

claimed resolution is 10ms. The question of the kluging of OOP's, and

the separation by processes have still to be faced. Seconds() seems to

return a number 0 to 86400, but no separate flag like _bios_timeof

day() to indicate a rollover at midnight. I fear if retval = 0 or the

like might not be failsafe, etc.

William

On Wed, 2010-07-07 at 18:05 +0000, Lew wrote:

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1278763968.6255.14.camel@client-desktop

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 william