On Tue May 21 10:23:40 2024 +0000, eric pouech wrote:
why do you need float operations here? (int)(ticks_remaining / 1000) should do
It needs to be rounded because otherwise it will start with printing "Waiting for N-1 seconds" due to one or more ticks having elapsed (at least on my machine). But yes, I could do an int roundup instead (`(ticks_remaining + 500) / 1000`).