defaultclock object

(Shortest import: from brian2 import defaultclock)


An object that holds the simulation time and the time step.


dt : float

The time step of the simulation as a float

name : str, optional

An explicit name, if not specified gives an automatically generated name


Clocks are run in the same iteration if t is the same. The condition for two clocks to be considered as having the same time is abs(t1-t2)<epsilon*abs(t1), a standard test for equality of floating point values. The value of epsilon is 1e-14.