print timeInState when move from one state to another