diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-03 15:15:05 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-03 15:16:02 +0300 |
commit | d64803f63b4311b0abb93542a907e97b47493e9f (patch) | |
tree | c9c43b768859393d1b4b1d8c0bca84081606b19a /source/blender/blenlib/BLI_timeit.hh | |
parent | e797c4f28f50f2be9d6d28d4b8e5c080d53ef74f (diff) |
Cleanup: Use trailing underscore for non-public data members
This makes the code conform better with our style guide.
Diffstat (limited to 'source/blender/blenlib/BLI_timeit.hh')
-rw-r--r-- | source/blender/blenlib/BLI_timeit.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/BLI_timeit.hh b/source/blender/blenlib/BLI_timeit.hh index 711a7f16ab4..89d3f2369ea 100644 --- a/source/blender/blenlib/BLI_timeit.hh +++ b/source/blender/blenlib/BLI_timeit.hh @@ -34,21 +34,21 @@ void print_duration(Nanoseconds duration); class ScopedTimer { private: - std::string m_name; - TimePoint m_start; + std::string name_; + TimePoint start_; public: - ScopedTimer(std::string name) : m_name(std::move(name)) + ScopedTimer(std::string name) : name_(std::move(name)) { - m_start = Clock::now(); + start_ = Clock::now(); } ~ScopedTimer() { TimePoint end = Clock::now(); - Nanoseconds duration = end - m_start; + Nanoseconds duration = end - start_; - std::cout << "Timer '" << m_name << "' took "; + std::cout << "Timer '" << name_ << "' took "; print_duration(duration); std::cout << '\n'; } |