diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-05-12 03:44:22 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-05-12 03:44:22 -0700 |
| commit | 97ec4e50b128c201c82dd76b28ab44508d85e94f (patch) | |
| tree | 01707373663ef78f546b5431231a6fb75500822d /src/qt/clientmodel.cpp | |
| parent | Merge pull request #1267 from Diapolo/sendcoinsdialog (diff) | |
| parent | add the client startup time to the debug window / rename Version label to Cli... (diff) | |
| download | discoin-97ec4e50b128c201c82dd76b28ab44508d85e94f.tar.xz discoin-97ec4e50b128c201c82dd76b28ab44508d85e94f.zip | |
Merge pull request #1263 from Diapolo/RPCCon_ClientStartupTime
GUI: add the client startup time to the debug window...
Diffstat (limited to 'src/qt/clientmodel.cpp')
| -rw-r--r-- | src/qt/clientmodel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index d7172fd9c..85ab03612 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -5,6 +5,7 @@ #include "transactiontablemodel.h" #include "main.h" +static const int64 nClientStartupTime = GetTime(); #include <QDateTime> @@ -98,3 +99,8 @@ QString ClientModel::clientName() const { return QString::fromStdString(CLIENT_NAME); } + +QDateTime ClientModel::formatClientStartupTime() const +{ + return QDateTime::fromTime_t(nClientStartupTime); +} |