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) 52 #define TS (static_cast<double>(DELTA_T/1000.)) 55 #define SPEED2DIST(x) ((x)*TS) 57 #define DIST2SPEED(x) ((x)/TS) 59 #define ACCEL2DIST(x) ((x)*TS*TS) 61 #define ACCEL2SPEED(x) ((x)*TS) 63 #define SPEED2ACCEL(x) ((x)/TS) 65 #define STEPS2TIME(x) (static_cast<double>((x)/1000.)) 66 #define TIME2STEPS(x) (static_cast<SUMOTime>((x)*1000)) 67 #define STEPFLOOR(x) (int(x/DELTA_T)*DELTA_T) 68 #define STEPS2MS(x) (x) 70 #define SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep())
std::string time2string(SUMOTime t)
SUMOTime string2time(const std::string &r)