From 809543e8ae23bb032243e57f6de5d7d0a536a795 Mon Sep 17 00:00:00 2001 From: fdai7225 Date: Mon, 6 Feb 2023 08:29:41 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20zum=20Test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Umgebung.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umgebung.c b/src/Umgebung.c index 421d413..66dfab4 100644 --- a/src/Umgebung.c +++ b/src/Umgebung.c @@ -16,7 +16,7 @@ void RealU(int realU1[N][N]); void Score(int score); void Apfel(int realU[N][N]); void Umgebung(int str[N][N]); -void delay(int ms); //in the first step it remains constant +int delay(int ms); //in the first step it remains constant int main(){ srand(time(0));// damit wir ein Zufallszahl haben. @@ -97,11 +97,11 @@ void Score(int score){ } } -void delay(int ms){ +int delay(int ms){ clock_t start = clock(); while (clock() < start + ms); - + return ms; } void Umgebung(int str[N][N]){