diff options
author | Jon Atack <jon@atack.com> | 2022-02-13 19:44:05 +0100 |
---|---|---|
committer | randymcmillan <randy.lee.mcmillan@gmail.com> | 2022-03-16 04:54:52 -0400 |
commit | 127de22c5fb396e1670d2a911faf7a9adc9241e2 (patch) | |
tree | fd85c94e87d4dc72b6a9d71b1fdc4e82aed5258d /src/qt/guiutil.h | |
parent | 310ba924949b0052105a7937ac69d65a3864692b (diff) |
gui: add FormatPeerAge() utility helper
Co-authored-by: randymcmillan <randy.lee.mcmillan@gmail.com>
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r-- | src/qt/guiutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h index 0224b18b4e..76e5207d81 100644 --- a/src/qt/guiutil.h +++ b/src/qt/guiutil.h @@ -223,6 +223,9 @@ namespace GUIUtil /** Convert seconds into a QString with days, hours, mins, secs */ QString formatDurationStr(std::chrono::seconds dur); + /** Convert peer connection time to a QString denominated in the most relevant unit. */ + QString FormatPeerAge(std::chrono::seconds time_connected); + /** Format CNodeStats.nServices bitmask into a user-readable string */ QString formatServicesStr(quint64 mask); |