timer: handle time going backwards.