forked from catchorg/Catch2
A load more C++11 tweaks - mostly moving initialisations from constructors to inline
This commit is contained in:
@@ -13,14 +13,13 @@
|
||||
namespace Catch {
|
||||
class Timer {
|
||||
public:
|
||||
Timer() : m_microSeconds( 0 ) {}
|
||||
void start();
|
||||
unsigned int getElapsedMicroseconds() const;
|
||||
unsigned int getElapsedMilliseconds() const;
|
||||
double getElapsedSeconds() const;
|
||||
|
||||
private:
|
||||
uint64_t m_microSeconds;
|
||||
uint64_t m_microSeconds = 0;
|
||||
};
|
||||
|
||||
} // namespace Catch
|
||||
|
||||
Reference in New Issue
Block a user