Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_timer.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-08-04 12:22:16 +0100
committerPhil Nash2017-08-04 12:22:16 +0100
commit39d37d9f341e0cefc52a2abfdefbe1071fe0bc56 (patch)
tree3cda55e7739737e42beeaf8981a561df6fdf6861 /include/internal/catch_timer.cpp
parentc7028f7bc76e011f23fcc2baf308f5c27ef1f019 (diff)
downloadcatch3-39d37d9f341e0cefc52a2abfdefbe1071fe0bc56.tar.gz
Timer resolution is now nanoseconds
Diffstat (limited to 'include/internal/catch_timer.cpp')
-rw-r--r--include/internal/catch_timer.cpp4
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