commit calculate time in sleep mode