aboutsummaryrefslogtreecommitdiff
path: root/src/util/timetaker.h
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/util/timetaker.h
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/util/timetaker.h')
-rw-r--r--src/util/timetaker.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/util/timetaker.h b/src/util/timetaker.h
index bc3d4a88d..0abf9baa5 100644
--- a/src/util/timetaker.h
+++ b/src/util/timetaker.h
@@ -29,15 +29,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class TimeTaker
{
public:
- TimeTaker(const std::string &name, u64 *result=nullptr,
- TimePrecision prec=PRECISION_MILLI);
+ TimeTaker(const std::string &name, u64 *result = nullptr,
+ TimePrecision prec = PRECISION_MILLI);
- ~TimeTaker()
- {
- stop();
- }
+ ~TimeTaker() { stop(); }
- u64 stop(bool quiet=false);
+ u64 stop(bool quiet = false);
u64 getTimerTime();