gnu
public text v1 · immutable#include <stdio.h>#include <stdlib.h>#include <time.h>void sleep(int nb_seconds){ clock_t goal; goal = (nb_seconds * CLOCKS_PER_SEC) + clock(); while(goal > clock()) { ; }} int main (){ int i=0; int time = 1; for (i=0;i<10;i++) { printf("\r%i",i); fflush(stdout); sleep(1); } printf("\n"); return 0;}