Skip to content

Commit

Permalink
Fix lim package
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Oct 18, 2023
1 parent c432052 commit f5f1052
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/packages/lim/prog/lim2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<seconds>(high_resolution_clock::now() - start).count() < secs)
while (duration_cast<milliseconds>(high_resolution_clock::now() - start).count() < milisecs)
i++;
return i;
}
Expand All @@ -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;
}

Expand Down

0 comments on commit f5f1052

Please sign in to comment.