Use std::chrono for Timer to eliminate platform dependency

This commit is contained in:
Phil Nash
2017-04-25 12:24:34 +01:00
parent 67005d290c
commit 242022460d
2 changed files with 7 additions and 31 deletions

View File

@@ -13,14 +13,14 @@
namespace Catch {
class Timer {
public:
Timer() : m_ticks( 0 ) {}
Timer() : m_microSeconds( 0 ) {}
void start();
unsigned int getElapsedMicroseconds() const;
unsigned int getElapsedMilliseconds() const;
double getElapsedSeconds() const;
private:
uint64_t m_ticks;
uint64_t m_microSeconds;
};
} // namespace Catch