From ccd43f25c7a784613c31d520159b716a35f10789 Mon Sep 17 00:00:00 2001 From: justuser-31 Date: Sat, 15 Feb 2025 09:27:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=20=D1=81=D0=B5=D0=BA=D1=83=D0=BD=D0=B4=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BC=D0=B8=D0=BB=D0=BB=D0=B8=D1=81=D0=B5=D0=BA?= =?UTF-8?q?=D1=83=D0=BD=D0=B4=D1=8B=20(=D0=B4=D0=BB=D1=8F=20=D0=B1=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D1=88=D0=B5=D0=B9=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/wait.c | 2 +- libs/time.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/wait.c b/examples/wait.c index 531489a..ae965df 100644 --- a/examples/wait.c +++ b/examples/wait.c @@ -4,7 +4,7 @@ int main() { printf("Wait 5 seconds...\n"); - wait(5); + wait(5000); return 0; } diff --git a/libs/time.h b/libs/time.h index 8e69640..33b5735 100644 --- a/libs/time.h +++ b/libs/time.h @@ -6,8 +6,8 @@ void wait(int time) { #ifdef _WIN32 - Sleep(time*1000); + Sleep(time); #else - sleep(time); + usleep(time * 1000); #endif }