[Pkg-owncloud-commits] [owncloud-client] 23/103: Add a reset method.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Apr 30 18:08:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 0a2791270ab3be654427e891c3b84e5132dfaa4d
Author: Klaas Freitag <freitag at owncloud.com>
Date: Tue Apr 15 16:10:46 2014 +0200
Add a reset method.
---
src/mirall/utility.cpp | 7 +++++++
src/mirall/utility.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp
index 3cfd638..0291c7b 100644
--- a/src/mirall/utility.cpp
+++ b/src/mirall/utility.cpp
@@ -504,6 +504,13 @@ void Utility::StopWatch::stop()
_timer.invalidate();
}
+void Utility::StopWatch::reset()
+{
+ _timer.invalidate();
+ _startTime.setMSecsSinceEpoch(0);
+ _lapTimes.clear();
+}
+
quint64 Utility::StopWatch::addLapTime( const QString& lapName )
{
if( !_timer.isValid() ) {
diff --git a/src/mirall/utility.h b/src/mirall/utility.h
index 0dfc53a..3fb7051 100644
--- a/src/mirall/utility.h
+++ b/src/mirall/utility.h
@@ -77,6 +77,7 @@ namespace Utility
void start();
void stop();
quint64 addLapTime( const QString& lapName );
+ void reset();
// out helpers, return the masured times.
QDateTime startTime() const;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list