44 #define SUMOTime_MAX std::numeric_limits<SUMOTime>::max() 45 #define SUMOTime_MIN std::numeric_limits<SUMOTime>::min() 46 #define SUMOTIME_MAXSTRING "9223372036854774" // SUMOTime_MAX / 1000 - 1 (because of rounding errors) 48 #ifndef HAVE_SUBSECOND_TIMESTEPS 52 #define TS (static_cast<SUMOReal>(1.)) 55 #define SPEED2DIST(x) (x) 57 #define DIST2SPEED(x) (x) 59 #define ACCEL2DIST(x) (x) 61 #define ACCEL2SPEED(x) (x) 63 #define SPEED2ACCEL(x) (x) 65 #define STEPS2TIME(x) (static_cast<SUMOReal>(x)) 66 #define TIME2STEPS(x) (static_cast<SUMOTime>(x)) 67 #define STEPFLOOR(x) (x) 68 #define STEPS2MS(x) ((x)*1000) 76 #define TS (static_cast<SUMOReal>(DELTA_T/1000.)) 79 #define SPEED2DIST(x) ((x)*TS) 81 #define DIST2SPEED(x) ((x)/TS) 83 #define ACCEL2DIST(x) ((x)*TS*TS) 85 #define ACCEL2SPEED(x) ((x)*TS) 87 #define SPEED2ACCEL(x) ((x)/TS) 89 #define STEPS2TIME(x) (static_cast<SUMOReal>((x)/1000.)) 90 #define TIME2STEPS(x) (static_cast<SUMOTime>((x)*1000)) 91 #define STEPFLOOR(x) (int(x/DELTA_T)*DELTA_T) 92 #define STEPS2MS(x) (x) 96 #define SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep())
std::string time2string(SUMOTime t)
SUMOTime string2time(const std::string &r)