set time to start or stop