Timer resolution is now nanoseconds
This commit is contained in:
1 parent
c7028f7bc7
commit
39d37d9f34
2 files changed
+9
-6
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user