diff options
| -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) {...} |
