mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	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