Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer function discrete

Status
Not open for further replies.

tsh73

Programmer
Apr 27, 2002
304
RU
Reading a fiew posts (
thread314-576141 and than also
(

thread314-575881 got a question: "What is TIMER function discrete"? That is, how frequently it changes?

Here's a piece of code:
DO
tt = TIMER
IF told <> tt THEN PRINT (tt - told) * 100
told = tt
LOOP WHILE INKEY$ = &quot;&quot;

It shows values between 4.6875 and 6.25
(1/100th of a second).
I remember there is a sentence that timer &quot;tiks&quot; 18.2 times per second - that seems relevant to this.

So I don't think setting variable to store TIMER value to DOUBLE gives us much ;)

Oh. Last thing. I tested this in QBasic 1.1 under Win 98.
 
Interesting enough,
but I tried this in VB6 - and got same results.
I was expecting frequency of about 1 ms...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top