loop cycle time compensation on sleep