quick sleep or delay function