From 40f598b33ac8b60774bed5c12fb89fe4e5d586c1 Mon Sep 17 00:00:00 2001 From: mzuenni Date: Sun, 27 Nov 2022 12:41:47 +0100 Subject: fixed timed code --- other/timed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other/timed.cpp') 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) {...} -- cgit v1.2.3