aboutsummaryrefslogtreecommitdiff
path: root/src/util/timetaker.h
diff options
context:
space:
mode:
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();