MCPcopy Create free account
hub / github.com/ElementsProject/elements / formatPingTime

Function formatPingTime

src/qt/guiutil.cpp:821–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821QString formatPingTime(std::chrono::microseconds ping_time)
822{
823 return (ping_time == std::chrono::microseconds::max() || ping_time == 0us) ?
824 QObject::tr("N/A") :
825 QObject::tr("%1 ms").arg(QString::number((int)(count_microseconds(ping_time) / 1000), 10));
826}
827
828QString formatTimeOffset(int64_t nTimeOffset)
829{

Callers 2

dataMethod · 0.85
updateDetailWidgetMethod · 0.85

Calls 1

count_microsecondsFunction · 0.85

Tested by

no test coverage detected