21 lines
572 B
C
21 lines
572 B
C
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
#include <graph.h>
|
||
|
|
||
|
void Temps(void) {
|
||
|
int minutes = 0;
|
||
|
int secondes = 0;
|
||
|
int tempsTotal = minutes * 60;
|
||
|
char x[6];
|
||
|
|
||
|
while(1) {
|
||
|
snprintf(x,6, "%02d:%02d", tempsTotal / 60, tempsTotal % 60);
|
||
|
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
|
||
|
RemplirRectangle(10,400, 100,50);
|
||
|
ChoisirCouleurDessin(CouleurParComposante(255, 255, 255)); /* Blanc */
|
||
|
EcrireTexte(10,450, x , 2); /* Taille 2 pour un texte plus grand */
|
||
|
sleep(1);
|
||
|
tempsTotal++;
|
||
|
}
|
||
|
}
|