Commit 4133ed7e authored by Fredrik Bagge Carlson's avatar Fredrik Bagge Carlson
Browse files

Use Lib.systemsleep in control loop

parent b2f44909
Pipeline #522 passed with stage
in 1 minute and 28 seconds
......@@ -23,7 +23,7 @@ macro periodically(h, simulation, body)
local start_time = time()
local execution_time = time()-start_time
$(esc(simulation)) || sleep(max(0,$(esc(h))-execution_time))
$(esc(simulation)) || Libc.systemsleep(max(0,$(esc(h))-execution_time))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment