diff options
| author | Phil Nash | 2017-08-04 12:22:16 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-04 12:22:16 +0100 |
| commit | 39d37d9f341e0cefc52a2abfdefbe1071fe0bc56 (patch) | |
| tree | 3cda55e7739737e42beeaf8981a561df6fdf6861 /include/internal/catch_timer.cpp | |
| parent | c7028f7bc76e011f23fcc2baf308f5c27ef1f019 (diff) | |
| download | catch3-39d37d9f341e0cefc52a2abfdefbe1071fe0bc56.tar.gz | |
Timer resolution is now nanoseconds
Diffstat (limited to 'include/internal/catch_timer.cpp')
| -rw-r--r-- | include/internal/catch_timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_timer.cpp b/include/internal/catch_timer.cpp index 3253f1f4..fad86f85 100644 --- a/include/internal/catch_timer.cpp +++ b/include/internal/catch_timer.cpp @@ -12,8 +12,8 @@ namespace Catch { - auto getCurrentMicrosecondsSinceEpoch() -> uint64_t { - return std::chrono::duration_cast<std::chrono::microseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() ).count(); + auto getCurrentNanosecondsSinceEpoch() -> uint64_t { + return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() ).count(); } } // namespace Catch |