MCPcopy Create free account
hub / github.com/SIPp/sipp / msToHHMMSS

Method msToHHMMSS

src/stat.cpp:1452–1463  ·  view source on GitHub ↗

Time Gestion */

Source from the content-addressed store, hash-verified

1450
1451/* Time Gestion */
1452char* CStat::msToHHMMSS (unsigned long P_ms)
1453{
1454 static char L_time [TIME_LENGTH];
1455 unsigned long hh, mm, ss;
1456
1457 P_ms = P_ms / 1000;
1458 hh = P_ms / 3600;
1459 mm = (P_ms - hh * 3600) / 60;
1460 ss = P_ms - (hh * 3600) - (mm * 60);
1461 sprintf (L_time, "%2.2lu:%2.2lu:%2.2lu", hh, mm, ss);
1462 return (L_time);
1463} /* end of msToHHMMSS */
1464
1465char* CStat::msToHHMMSSus (unsigned long P_ms)
1466{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected