time is printed when a change is detected