Timer resolution is now nanoseconds

This commit is contained in:
Phil Nash 2017-08-04 12:22:16 +01:00
parent c7028f7bc7
commit 39d37d9f34
2 changed files with 9 additions and 6 deletions

View file

@ -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