generator: Write sleep functions for the delays simulation