예제 #1
0
    def simulate(self, duration, measure_time=False):
        """   Runs the network for the given duration in milliseconds. The number of simulation steps is  computed relative to the discretization step ``dt`` declared in ``setup()`` (default: 1ms)::

            simulate(1000.0)

        *Parameters*:

        * **duration**: the duration in milliseconds.
        * **measure_time**: defines whether the simulation time should be printed (default=False).
            Global.simulate(duration, net_id=self.id)
        """
        Global.simulate(duration, measure_time, self.id)