diff options
Diffstat (limited to 'src/timer.h')
-rw-r--r-- | src/timer.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/timer.h b/src/timer.h new file mode 100644 index 0000000..aed1b61 --- /dev/null +++ b/src/timer.h @@ -0,0 +1,12 @@ +#pragma once + +#include <chrono> + +namespace timer { + +std::chrono::time_point<std::chrono::high_resolution_clock> now(); + +double millisecondsSince( + std::chrono::time_point<std::chrono::high_resolution_clock>& pit); + +} |