Loading...
Logo
Processing Forum

millis()????

in Programming Questions  •  2 years ago  
Hi...

Is it possible to count to 1000(millisec) and reset to 0, then count to 1000 again, and so on over and over..???


RGD Fuzz

Replies(3)

Re: millis()????

2 years ago
I'm not sure if this would solve your problem, but you could try something like:

int zero_to_thousand = millis() % 1000;

Cheers,
Miguel

Re: millis()????

2 years ago

well it works......Thanks alot.....


Best regards Fuzz

Re: millis()????

2 years ago
No, it doesn't seem posible.
But, take a look at this post:
http://forum.processing.org/topic/simple-restart