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:
authorKlaas Freitag <freitag@owncloud.com>2014-03-26 21:06:25 +0400
committerKlaas Freitag <freitag@owncloud.com>2014-03-26 21:16:27 +0400
commitdd6b71bad683b6e3724351b888435f542c1f04cf (patch)
treef0dc50f2d665dbb9053bde426fc5057826d392a7 /src/mirall/syncengine.h
parent9af2339596852a9d635fb4edc6da68685240ac86 (diff)
Use a stopwatch to meassure the time consumed.
Diffstat (limited to 'src/mirall/syncengine.h')
-rw-r--r--src/mirall/syncengine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mirall/syncengine.h b/src/mirall/syncengine.h
index 6327ab8ac..58f28940f 100644
--- a/src/mirall/syncengine.h
+++ b/src/mirall/syncengine.h
@@ -27,6 +27,7 @@
#include "mirall/syncfileitem.h"
#include "mirall/progressdispatcher.h"
+#include "mirall/utility.h"
class QProcess;
@@ -59,6 +60,8 @@ public:
/* Abort the sync. Called from the main thread */
void abort();
+ Utility::StopWatch stopWatch() { return _stopWatch; }
+
signals:
void csyncError( const QString& );
void csyncWarning( const QString& );
@@ -91,8 +94,6 @@ private slots:
void slotUpdateFinished(int updateResult);
private:
-
-
void handleSyncError(CSYNC *ctx, const char *state);
static int treewalkLocal( TREE_WALK_FILE*, void *);
@@ -110,13 +111,14 @@ private:
QString _remotePath;
SyncJournalDb *_journal;
QScopedPointer <OwncloudPropagator> _propagator;
- QElapsedTimer _syncTime;
QString _lastDeleted; // if the last item was a path and it has been deleted
QHash <QString, QString> _seenFiles;
QThread _thread;
Progress::Info _progressInfo;
+ Utility::StopWatch _stopWatch;
+
// maps the origin and the target of the folders that have been renamed
QHash<QString, QString> _renamedFolders;
QString adjustRenamedPath(const QString &original);
@@ -125,8 +127,6 @@ private:
int _downloadLimit;
int _uploadLimit;
-
- friend struct CSyncRunScopeHelper;
};