MCPcopy Create free account
hub / github.com/benapetr/TuxManager / SimplifyTimeMS

Method SimplifyTimeMS

src/misc.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48QString Misc::SimplifyTimeMS(int ms)
49{
50 if (ms < 0)
51 ms = 0;
52
53 if (ms > 0 && (ms % 1000) == 0)
54 return QString::number(ms / 1000) + " s";
55
56 return QString::number(ms) + " ms";
57}
58
59QString Misc::FormatBytesPerSecond(double bytesPerSec)
60{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected