Changes in src/Common/Stats/Counter.h [b8665e3:1cb7fab2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Stats/Counter.h
rb8665e3 r1cb7fab2 37 37 class SimpleCounter { 38 38 public: 39 inline void operator++() {}40 39 inline void operator++(int) {} 41 40 inline void operator+=(size_t) {} … … 85 84 virtual void print(std::ostream & os) override { os << count; } 86 85 87 inline void operator++() { if(!enabled) return; count++; }88 86 inline void operator++(int) { if(!enabled) return; count++; } 89 87 inline void operator+=(size_t value) { if(!enabled) return; count += value; }
Note: See TracChangeset
for help on using the changeset viewer.