Reset timer block

Request a new command, feature, or improvement

Moderator: MSandro

Post Reply
SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

Reset timer block

Post by SimpleSi » Jul 9th, '17, 20:35

would be nice as it does save a lot of work with noting value and subtracting it from previous value later to measure durations

And being in milliseconds just adds to the work :)

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: Reset timer block

Post by JohnM » Jul 10th, '17, 09:34

Would you want the timer to get reset when you press the "go" button, as in Scratch?

SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

Re: Reset timer block

Post by SimpleSi » Jul 10th, '17, 13:30

Yes please but...
I don't normally use it that way - I reset it at some point in a script and then use the duration for something sometime later.

e.g Green flag/Go would reset a game to initial state and then user would press spacebar to start playing/action - that's the point I'd want to reset the timer

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: Reset timer block

Post by JohnM » Jul 11th, '17, 14:21

So, a "reset timer" block would be nice to have. Do you ever have need for more than one timer in a project?

SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

Re: Reset timer block

Post by SimpleSi » Jul 11th, '17, 14:54

TBH its not something I can remember wishing for

MSandro
Posts: 162
Joined: Jul 26th, '17, 21:12

Re: Reset timer block

Post by MSandro » Aug 3rd, '17, 14:49

But in some situationes it would be helpful to heave multiple timers, maybe you can add a integer (ID) to the timer blocks (get and reset timer value) to select a timer "channel".

Post Reply