This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-03-13 12:37:27

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Accurate Timer

Can we have a more accurate timer that counts to the 3 digit after zero?

That way, it can apply for both the <timer> tag and the <wait( ? )secs> tag.

Offline

 

#2 2008-03-14 08:45:21

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Accurate Timer

On my Mac, the timer is set to the nearest millisecond.  I think you are confusing the display (which only shows to the nearest tenth) with the internal value, which appears to be to the nearest millisecond.  Note: the timer may have different resolution on different operating systems---I've only checked running under Mac OS X 10.3.9.

You can try setting a variable to 1000*timer to look at the value more easily in a display.

Offline

 

#3 2008-03-14 09:14:50

Bluekingice
Scratcher
Registered: 2007-12-25
Posts: 86

Re: Accurate Timer

Rukqo wrote:

Can we have a more accurate timer that counts to the 3 digit after zero?

That way, it can apply for both the <timer> tag and the <wait( ? )secs> tag.

you can make a time variable and forever wait 1 secs, change time by 1 or something ilke that.


http://a2.cdn.gaiaonline.com/gaia/members/ava/28/c1/15af04d1c3c128_flip.png?
My GAIA Online avatar.

Offline

 

Board footer