[futurebasic] Re: Speaking of Speed...

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Thu, 18 Dec 1997 21:37:21 -0600
Laurie Murphy wrote:
> do
>  OldCount& = FN TICKCOUNT
>  ' your program in here.
>  do
>   CurrentCount& = FN TICKCOUNT
>  until CurrentCount& > OldCount&+5
> 
> until programends
> 
>         I think this should make sure that at least five ticks have past since your
> program last looped. Of course you'll need to fix the bug that the counter is
> reset at midnight, otherwise this will just freeze at midnight.

I think you're thinking of the TIMER function, which shows the number of
seconds since midnight (and hence resets itself when midnight rolls
around again).  The TICKCOUNT function returns the number of ticks since
your system started up, and doesn't reset at midnight.

- Rick