20 lines
293 B
C
20 lines
293 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <time.h>
|
||
|
|
||
|
|
||
|
/*timer de base (à mettre plus tard dans un fichier makefile)*/
|
||
|
int main(void){
|
||
|
int seconde=0;
|
||
|
int minute=0;
|
||
|
|
||
|
while(1) {
|
||
|
sleep(1);
|
||
|
seconde=seconde+1;
|
||
|
if(seconde>=60) {
|
||
|
seconde=0;
|
||
|
minute=minute+1;
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|