how to reset count time
in
Programming Questions
•
10 months ago
I would like to run a program in 5 seconds and then reset the timer back to 0
so the timer will start to count from 0 to 5 seconds again after the new frame..but failed with
the code below..could someone show me what is wrong??
so the timer will start to count from 0 to 5 seconds again after the new frame..but failed with
the code below..could someone show me what is wrong??
- void draw(){
- int m = millis();
- println(m);
- if(m == 5000){
- m = 0;
- }
- }
1