time check to set when start and stop