#include <SimTime.h>
Public Member Functions | |
Time () | |
Time (const Time &t) | |
tic_t | in_tics () const |
Get time expressed in tics. | |
step_t | in_steps (const Time &dt) const |
Get time expressed in multiples of dt. | |
double | in_ms () const |
Get time expressed in milliseconds. | |
double | in_sec () const |
Get time expressed in seconds. | |
string | toString () const |
bool | operator== (const Time &t) const |
bool | operator!= (const Time &t) const |
bool | operator<= (const Time &t) const |
bool | operator< (const Time &t) const |
bool | operator>= (const Time &t) const |
bool | operator> (const Time &t) const |
Time | operator+= (const Time &t) |
Time | operator-= (const Time &t) |
Time | operator+ (const Time &t) |
Time | operator- (const Time &t) |
Static Public Member Functions | |
static Time | ticks (tic_t t) |
static Time | steps (const step_t s, const Time &dt) |
static Time | ms (double t) |
static Time | sec (double t) |
Definition at line 47 of file SimTime.h.
Definition at line 113 of file SimTime.h.
References _tics.
Referenced by SingleThreadNetwork::_connect_(), MultiThreadNetwork::_connect_(), DistributedNetwork::_connect_(), and SimParameter::SimParameter().
Definition at line 120 of file SimTime.h.
References _tics.
Referenced by SingleThreadSimEngine::reset().
Definition at line 126 of file SimTime.h.
References _tics.
Referenced by SingleThreadNetwork::_connect_(), MultiThreadNetwork::_connect_(), GenericOnePairStdpSynapse< GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< ExponentialDecaySpikeResponse > > >::incoming(), GenericHomeostaticSynapse< GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< ExponentialDecaySpikeResponse > > >::incoming(), GenericEachPairStdpSynapse< GenericDynamicSpikingSynapse< GenericCurrentBasedSpikingSynapse< ExponentialDecaySpikeResponse > > >::incoming(), SimNetwork::record(), and AnalogPointNeuron::reset().
tic_t Time::in_tics | ( | ) | const [inline] |
Get time expressed in multiples of dt.
Definition at line 138 of file SimTime.h.
Referenced by SingleThreadNetwork::_addAnalogMessage_(), MultiThreadNetwork::_addAnalogMessage_(), DistributedSingleThreadNetwork::_addAnalogMessage_(), DistributedMultiThreadNetwork::_addAnalogMessage_(), SingleThreadNetwork::_addSpikeMessage_(), MultiThreadNetwork::_addSpikeMessage_(), DistributedSingleThreadNetwork::_addSpikeMessage_(), DistributedNetwork::_addSpikeMessage_(), DistributedMultiThreadNetwork::_addSpikeMessage_(), MultiThreadNetwork::_initialize_(), DistributedSingleThreadNetwork::_initialize_(), DistributedMultiThreadNetwork::_initialize_(), MultiThreadNetwork::addGenericAnalogMessage(), DistributedSingleThreadNetwork::addGenericAnalogMessage(), DistributedMultiThreadNetwork::addGenericAnalogMessage(), MultiThreadNetwork::addLocalSpikeMessage(), SimNetwork::connect(), DistributedMultiThreadNetwork::init(), MultiThreadSimEngine::MultiThreadSimEngine(), MultiThreadSpikeScheduler::MultiThreadSpikeScheduler(), SingleThreadSpikeScheduler::reset(), MultiThreadSpikeScheduler::reset(), and SimNetwork::simulate().
double Time::in_ms | ( | ) | const [inline] |
Get time expressed in milliseconds.
Definition at line 143 of file SimTime.h.
Referenced by SingleThreadNetwork::_addSpikeMessage_(), MultiThreadNetwork::_addSpikeMessage_(), DistributedSingleThreadNetwork::_addSpikeMessage_(), DistributedMultiThreadNetwork::_addSpikeMessage_(), MultiThreadNetwork::addGenericAnalogMessage(), DistributedSingleThreadNetwork::addGenericAnalogMessage(), DistributedMultiThreadNetwork::addGenericAnalogMessage(), MultiThreadNetwork::addLocalSpikeMessage(), and toString().
double Time::in_sec | ( | ) | const [inline] |
Get time expressed in seconds.
Definition at line 148 of file SimTime.h.
Referenced by DistributedNetwork::_connect_(), SquarePulseSpikeResponse::advance(), SpikingInputNeuron::advance(), SimProgressBar::advance(), PoissonInputNeuron::advance(), ODESystemBasedSpikingNeuron::advance(), LinearPoissonNeuron::advance(), CbLifNeuron::advance(), LifNeuron::advance(), GenericDAModulatedSTDPSynapse< BaseSyn >::advance(), GABA_BResponseODE::advance(), GABA_BResponse::advance(), AnalogLevelBasedInputNeuron::advance(), SingleThreadSimEngine::advance(), SimProgressBar::changeSimulationTime(), SingleThreadSpikeScheduler::deliverSpikes(), MultiThreadSpikeScheduler::deliverSpikes(), DistributedMultiThreadNetwork::init(), SingleThreadSimEngine::reset(), SpikeOutputPort::setSpike(), SpikeOutputPort::setSpikeByOffset(), SpikeOutputPort::setSpikeByOffsetFraction(), and FiniteSpikeResponse::spikeHitReturn().
string Time::toString | ( | void | ) | const [inline] |
Definition at line 153 of file SimTime.h.
References in_ms().
Referenced by operator+=(), and operator<<().
Definition at line 188 of file SimTime.h.
References _tics, and toString().