diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 10:05:27 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-10 10:05:27 +0100 |
commit | 1f547bac86c0b4dc3f4ce6d872fe49bbfd77ea51 (patch) | |
tree | 4b7bd9911051bbe3cbd8ea961fd6c905b08d724f /examples | |
parent | 660ee77c9875ad71d4189e8643f679f574687528 (diff) | |
download | sink-1f547bac86c0b4dc3f4ce6d872fe49bbfd77ea51.tar.gz sink-1f547bac86c0b4dc3f4ce6d872fe49bbfd77ea51.zip |
Print average time per mail.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 4648717..0ddd8f8 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -196,7 +196,8 @@ void MaildirResource::synchronizeMails(Sink::Storage::Transaction &transaction, | |||
196 | 196 | ||
197 | createOrModify(transaction, synchronizationTransaction, *mMailAdaptorFactory, bufferType, remoteId, mail); | 197 | createOrModify(transaction, synchronizationTransaction, *mMailAdaptorFactory, bufferType, remoteId, mail); |
198 | } | 198 | } |
199 | Trace() << "Synchronized " << count << " mails in " << listingPath << Sink::Log::TraceTime(time->elapsed()); | 199 | const auto elapsed = time->elapsed(); |
200 | Trace() << "Synchronized " << count << " mails in " << listingPath << Sink::Log::TraceTime(elapsed) << " " << elapsed/qMax(count, 1) << " [ms/mail]"; | ||
200 | 201 | ||
201 | } | 202 | } |
202 | 203 | ||