From f5f1052ed0b049f71641f697f99e33c7646d4604 Mon Sep 17 00:00:00 2001 From: MasloMaslane Date: Wed, 18 Oct 2023 13:06:05 +0200 Subject: [PATCH] Fix lim package --- tests/packages/lim/prog/lim2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/packages/lim/prog/lim2.cpp b/tests/packages/lim/prog/lim2.cpp index f4481409..067c49cf 100644 --- a/tests/packages/lim/prog/lim2.cpp +++ b/tests/packages/lim/prog/lim2.cpp @@ -4,10 +4,10 @@ using namespace std; using namespace std::chrono; -int wait(int secs) { +int wait(int milisecs) { auto start = high_resolution_clock::now(); int i = 0; - while (duration_cast(high_resolution_clock::now() - start).count() < secs) + while (duration_cast(high_resolution_clock::now() - start).count() < milisecs) i++; return i; } @@ -17,11 +17,11 @@ int main() { cin >> a >> b; if (a == 2 && b == 1) { - int i = wait(6); + int i = wait(6000); a += i - i; } else { - int i = wait(1); + int i = wait(1500); a += i - i; }