Using millis() to add a timer

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

how do you put both the milliseconds and the normal seconds

elvisomoregie
Автор

Hi I tried this but keep getting a message "Size was not declared in this scope". Please can you advice how to solve this problem?
code underneath:
int m;
void setup(){
size (100, 100);
}
void draw (){
background(255);
fill(0);
m=millis()/1000;

text(m, 10, 10);
}

chbonnici
Автор

I dont know if someone will see this coment but for the chance someone will see this so :
I put this code in my project and suddenly everything start to go slowlyyyy how do I fix this problem ?

דניאלאסרף-טצ
welcome to shbcf.ru