diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:57:47 +0100 |
commit | 3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch) | |
tree | c070350db219f2c4241d22bc31949685c7b42fe9 /src/util/timetaker.h | |
parent | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff) | |
parent | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff) | |
download | dragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/util/timetaker.h')
-rw-r--r-- | src/util/timetaker.h | 11 |
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(); |