aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2014-12-15 11:07:55 +0100
committerPavel Janík <Pavel@Janik.cz>2014-12-15 19:56:45 +0100
commit73caf47dfe9c398aac75b5f6bcd1e0a644479a46 (patch)
tree00971dc724321ae8080d01631d9a30a75070346b /src/qt/guiutil.cpp
parent26a6bae7537c73cb4b713293ce29b7c6d71a542d (diff)
Display time offset in the debug window's Peers tab
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index a1ae756c43..98c556db75 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -843,4 +843,9 @@ QString formatPingTime(double dPingTime)
return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10));
}
+QString formatTimeOffset(int64_t nTimeOffset)
+{
+ return QString(QObject::tr("%1 s")).arg(QString::number((int)nTimeOffset, 10));
+}
+
} // namespace GUIUtil