I don't like the fact `$sleepTime` is float. Wouldn't be better to have an integer of mili/microseconds?