NEST
2.6.0,not_revisioned_source_dir@0
|
Class to convert times from one representation to another. More...
#include <nest_timeconverter.h>
Public Member Functions | |
TimeConverter () | |
Constructor saves current TICS_PER_MS and TICS_PER_STEP in members OLD_TICS_PER_MS, OLD_TICS_PER_STEP. More... | |
Time | from_old_steps (long_t s_old) const |
Converts a given number of steps with respect to old representation into a time object in current representation. More... | |
Time | from_old_tics (tic_t t_old) const |
Converts a given number of tics with respect to old representation into a time object in current representation. More... | |
Private Attributes | |
double_t | OLD_TICS_PER_MS |
double_t | OLD_TICS_PER_STEP |
Class to convert times from one representation to another.
Createing an object of TimeCOnverter at a current time representation saves the current values of TICS_PER_MS and TICS_PER_STEP. After having changed the time representation, the members from_old_steps and from_old_tics can be used to convert steps or tics given with respect to the old representation in the new representation.
nest::TimeConverter::TimeConverter | ( | ) |
Constructor saves current TICS_PER_MS and TICS_PER_STEP in members OLD_TICS_PER_MS, OLD_TICS_PER_STEP.
References nest::Time::get_tics_per_ms(), nest::Time::get_tics_per_step(), OLD_TICS_PER_MS, and OLD_TICS_PER_STEP.
Converts a given number of steps with respect to old representation into a time object in current representation.
References nest::Time::ms, OLD_TICS_PER_MS, and OLD_TICS_PER_STEP.
Referenced by nest::Connection< targetidentifierT >::calibrate(), and nest::GenericConnectorModel< ConnectionT >::calibrate().
Converts a given number of tics with respect to old representation into a time object in current representation.
References nest::Time::ms, and OLD_TICS_PER_MS.
|
private |
Referenced by from_old_steps(), from_old_tics(), and TimeConverter().
|
private |
Referenced by from_old_steps(), and TimeConverter().