33#define SUMOTime_MAX std::numeric_limits<SUMOTime>::max()
34#define SUMOTime_MIN std::numeric_limits<SUMOTime>::min()
35#define SUMOTime_MAX_PERIOD (SUMOTime_MAX - SUMOTime_MAX % DELTA_T)
41#define TS (static_cast<double>(DELTA_T)/1000.)
44#define SPEED2DIST(x) ((x)*TS)
46#define DIST2SPEED(x) ((x)/TS)
48#define ACCEL2DIST(x) ((x)*TS*TS)
50#define ACCEL2SPEED(x) ((x)*TS)
52#define SPEED2ACCEL(x) ((x)/TS)
54#define STEPS2TIME(x) (static_cast<double>(x)/1000.)
56#define TIME2STEPS(x) (static_cast<SUMOTime>((x) * 1000. + ((x) >= 0 ? 0.5 : -0.5)))
57#define STEPFLOOR(x) (int(x/DELTA_T)*DELTA_T)
58#define STEPS2MS(x) (x)
60#define SIMSTEP MSNet::getInstance()->getCurrentTimeStep()
61#define SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep())
bool checkStepLengthMultiple(const SUMOTime t, const std::string &error="", SUMOTime deltaT=DELTA_T)
check if given SUMOTime is multiple of the step length
std::string elapsedMs2string(long long int t)
convert ms to string for log output
std::string time2string(SUMOTime t)
convert SUMOTime to string
SUMOTime string2time(const std::string &r)
convert string to SUMOTime