<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run(self, with_logging: bool=True) -> int: """Run the simulation for the time duration specified in the configuration Parameters with_logging Whether or not to log the simulation steps. Only works in an ipython environment. Returns ------- The number of steps the simulation took. """

        return self.run_until(self.clock.stop_time, with_logging=with_logging)