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

Method PingTimeToString

src/bitcoin-cli.cpp:426–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 return "";
425 }
426 std::string PingTimeToString(double seconds) const
427 {
428 if (seconds < 0) return "";
429 const double milliseconds{round(1000 * seconds)};
430 return milliseconds > 999999 ? "-" : ToString(milliseconds);
431 }
432 std::string ConnectionTypeForNetinfo(const std::string& conn_type) const
433 {
434 if (conn_type == "outbound-full-relay") return "full";

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected