Is it necessary for sleep to allocate?

How about using Libc.systemsleep()?
https://docs.julialang.org/en/v1/base/libc/#Base.Libc.systemsleep

image

This is on Windows.