diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2022-11-30 12:43:36 +0100 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2022-11-30 12:43:36 +0100 |
| commit | 702469ce6f966270997bfe43a9fb9881df2c0ff0 (patch) | |
| tree | a7bc8db9fccdec27348515bd3128e51606f85e31 /other/timed.cpp | |
| parent | 03788f48be2634c36cd19ba25b0a851685b9c877 (diff) | |
| parent | 40f598b33ac8b60774bed5c12fb89fe4e5d586c1 (diff) | |
Merge branch 'new-master' of github.com:mzuenni/ContestReference into new-master
Diffstat (limited to 'other/timed.cpp')
| -rw-r--r-- | other/timed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/timed.cpp b/other/timed.cpp index 20eec70..b3ed4ef 100644 --- a/other/timed.cpp +++ b/other/timed.cpp @@ -1,3 +1,3 @@ int times = clock(); //run for 900ms -while (clock()-times < 900) {...} +while (1000*(clock()-times)/CLOCKS_PER_SEC < 900) {...} |
