Update timer.h

Added state variable