diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 22:39:24 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 22:41:01 +0300 |
commit | 3c6ea25bcfafc513560c9e8a4baaf211bec2750c (patch) | |
tree | ed8b174bb669c0012af28338def51efd808e61fb /kms++util/stopwatch.h | |
parent | 9916712a62169606d845510028a3ea6f84bd442f (diff) |
kms++util: split to subdirs
Diffstat (limited to 'kms++util/stopwatch.h')
-rw-r--r-- | kms++util/stopwatch.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/kms++util/stopwatch.h b/kms++util/stopwatch.h deleted file mode 100644 index 9b60fa1..0000000 --- a/kms++util/stopwatch.h +++ /dev/null @@ -1,28 +0,0 @@ -#include <chrono> - -class Stopwatch -{ -public: - void start() - { - m_start = std::chrono::steady_clock::now(); - } - - double elapsed_s() const - { - return std::chrono::duration<double>(std::chrono::steady_clock::now() - m_start).count(); - } - - double elapsed_ms() const - { - return std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - m_start).count(); - } - - double elapsed_us() const - { - return std::chrono::duration<double, std::micro>(std::chrono::steady_clock::now() - m_start).count(); - } - -private: - std::chrono::steady_clock::time_point m_start; -}; |