Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2016-06-09 15:28:15 +0300
committerChristian Kamm <mail@ckamm.de>2016-06-09 15:28:15 +0300
commitd655074f85d93d799b0893e1943e71a552c74795 (patch)
treee75bd9600793c396be46a3392c5ee56cd1b9adc0 /src/gui/syncrunfilelog.cpp
parent85a173e1746b268416b18f9c377ee317d937ddac (diff)
Log: Include start of propagation and lap duration
Diffstat (limited to 'src/gui/syncrunfilelog.cpp')
-rw-r--r--src/gui/syncrunfilelog.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp
index 3013f6c87..bc312cc3d 100644
--- a/src/gui/syncrunfilelog.cpp
+++ b/src/gui/syncrunfilelog.cpp
@@ -120,7 +120,8 @@ void SyncRunFileLog::start(const QString &folderPath)
}
- _duration.start();
+ _totalDuration.start();
+ _lapDuration.start();
_out << "#=#=#=# Syncrun started " << dateTimeStr(QDateTime::currentDateTime()) << endl;
}
@@ -160,10 +161,18 @@ void SyncRunFileLog::logItem( const SyncFileItem& item )
_out << endl;
}
+void SyncRunFileLog::logLap(const QString& name)
+{
+ _out << "#=#=#=#=# " << name << " " << dateTimeStr(QDateTime::currentDateTime())
+ << " (last step: " << _lapDuration.restart() << " msec"
+ << ", total: " << _totalDuration.elapsed() << " msec)" << endl;
+}
+
void SyncRunFileLog::finish()
{
_out << "#=#=#=# Syncrun finished " << dateTimeStr(QDateTime::currentDateTime())
- << " (duration: " << _duration.elapsed() << " msec)" << endl;
+ << " (last step: " << _lapDuration.elapsed() << " msec"
+ << ", total: " << _totalDuration.elapsed() << " msec)" << endl;
_file->close();
}