from brian2.core.functions import timestep)
Converts a given time to an integer time step. This function slightly shifts the time before dividing it by
dtto make sure that multiples of
dtdo not end up in the preceding time step due to floating point issues. This function is used in the refractoriness calculation.
New in version 2.1.3.