diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-09-25 12:49:11 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2017-09-26 17:14:17 +0300 |
commit | 13e0cc6b501335c4cda9902905f503483237a46a (patch) | |
tree | 66ef6178dc05d0d7280ef0221f394a7ee8d2bfa5 /src/gui/syncrunfilelog.cpp | |
parent | 7af81f76657aa9aed7b3942484f925b9ac9c2574 (diff) |
Use QDateTime::currentDateTimeUtc instead of the non utc version
QDateTime::currentDateTime is terribly slow.
Diffstat (limited to 'src/gui/syncrunfilelog.cpp')
-rw-r--r-- | src/gui/syncrunfilelog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp index 51396cbb0..9d4a06d7f 100644 --- a/src/gui/syncrunfilelog.cpp +++ b/src/gui/syncrunfilelog.cpp @@ -127,7 +127,7 @@ void SyncRunFileLog::start(const QString &folderPath) _totalDuration.start(); _lapDuration.start(); - _out << "#=#=#=# Syncrun started " << dateTimeStr(QDateTime::currentDateTime()) << endl; + _out << "#=#=#=# Syncrun started " << dateTimeStr(QDateTime::currentDateTimeUtc()) << endl; } void SyncRunFileLog::logItem(const SyncFileItem &item) @@ -172,14 +172,14 @@ void SyncRunFileLog::logItem(const SyncFileItem &item) void SyncRunFileLog::logLap(const QString &name) { - _out << "#=#=#=#=# " << name << " " << dateTimeStr(QDateTime::currentDateTime()) + _out << "#=#=#=#=# " << name << " " << dateTimeStr(QDateTime::currentDateTimeUtc()) << " (last step: " << _lapDuration.restart() << " msec" << ", total: " << _totalDuration.elapsed() << " msec)" << endl; } void SyncRunFileLog::finish() { - _out << "#=#=#=# Syncrun finished " << dateTimeStr(QDateTime::currentDateTime()) + _out << "#=#=#=# Syncrun finished " << dateTimeStr(QDateTime::currentDateTimeUtc()) << " (last step: " << _lapDuration.elapsed() << " msec" << ", total: " << _totalDuration.elapsed() << " msec)" << endl; _file->close(); |