added timer for simulation