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, 7 insertions, 4 deletions
diff --git a/src/util/timetaker.h b/src/util/timetaker.h
index 0abf9baa5..bc3d4a88d 100644
--- a/src/util/timetaker.h
+++ b/src/util/timetaker.h
@@ -29,12 +29,15 @@ 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();