MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / PingTimeToString

Method PingTimeToString

src/bitcoin-cli.cpp:446–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 assert(false);
445 }
446 std::string PingTimeToString(double seconds) const
447 {
448 if (seconds < 0) return "";
449 const double milliseconds{round(1000 * seconds)};
450 return milliseconds > 999999 ? "-" : ToString(milliseconds);
451 }
452 std::string ConnectionTypeForNetinfo(const std::string& conn_type) const
453 {
454 if (conn_type == "outbound-full-relay") return "full";

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected