33 #define SUMOTime_MAX std::numeric_limits<SUMOTime>::max()
34 #define SUMOTime_MIN std::numeric_limits<SUMOTime>::min()
40 #define TS (static_cast<double>(DELTA_T/1000.))
43 #define SPEED2DIST(x) ((x)*TS)
45 #define DIST2SPEED(x) ((x)/TS)
47 #define ACCEL2DIST(x) ((x)*TS*TS)
49 #define ACCEL2SPEED(x) ((x)*TS)
51 #define SPEED2ACCEL(x) ((x)/TS)
53 #define STEPS2TIME(x) (static_cast<double>(x)/1000.)
55 #define TIME2STEPS(x) (static_cast<SUMOTime>((x) * 1000. + ((x) >= 0 ? 0.5 : -0.5)))
56 #define STEPFLOOR(x) (int(x/DELTA_T)*DELTA_T)
57 #define STEPS2MS(x) (x)
59 #define SIMSTEP MSNet::getInstance()->getCurrentTimeStep()
60 #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