From 33e989bd6b3218e4ffebaa8570ca7259d813c800 Mon Sep 17 00:00:00 2001 From: fdai7225 Date: Sun, 22 Jan 2023 20:47:55 +0100 Subject: [PATCH] delay funktion --- src/Umgebung.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Umgebung.c b/src/Umgebung.c index d770360..bb7db70 100644 --- a/src/Umgebung.c +++ b/src/Umgebung.c @@ -3,14 +3,27 @@ #include #include #include +#include +#include +#include #define N 40 void Umgebung(char str[N][N]); +void delay(int ms); int main(){ + char str[N][N]; Umgebung(str); + + re 0; +} +void delay(int ms){ + clock_t start = clock(); + while (clock()< start + ms); + + } void Umgebung(char str[N][N]){ system("cls"); @@ -28,6 +41,6 @@ void Umgebung(char str[N][N]){ } printf("\n"); } + delay(1000); printf("\n"); - } \ No newline at end of file