184 static void splitDuration(
long int MSecsDuration,
int& Days,
int& Hours,
int& Minutes,
int& Seconds,
int& MSecs)
186 MSecs = (int) (MSecsDuration % 1000);
187 Seconds = (int) (MSecsDuration / 1000) % 60;
188 Minutes = (int) ((MSecsDuration / (1000*60)) % 60);
189 Hours = (int) ((MSecsDuration / (1000*60*60)) % 24);
190 Days = (int) (MSecsDuration / (1000*60*60*24));
202 int MSecs, Seconds, Minutes, Hours, Days = 0;
204 splitDuration(MSecsDuration,Days,Hours,Minutes,Seconds,MSecs);
206 std::stringstream MSecsSS;
207 MSecsSS << std::setw(3) << std::setfill(
'0') << MSecs;
209 std::string TmpStr = MSecsSS.str()+
"s";
224 TmpStr = std::to_string(Seconds)+
"."
230 TmpStr = std::to_string(Minutes)+
"m "+std::to_string(Seconds)+
"."
236 TmpStr = std::to_string(Hours)+
"h "+std::to_string(Minutes)+
"m "+std::to_string(Seconds)+
"."
242 TmpStr = std::to_string(Days)+
"d "+std::to_string(Hours)+
"h "+
243 std::to_string(Minutes)+
"m "+
244 std::to_string(Seconds)+
"."