summaryrefslogtreecommitdiff
path: root/libkms++util/stopwatch.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 20:17:35 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 20:17:35 +0300
commit17d180891f1e237ea5d25835999a8b23a6e7946d (patch)
tree5963fe4d338f6272daf55c76ed355effb47afc71 /libkms++util/stopwatch.h
parent38a71ee72c47f3287c327113ce411f236cac05ef (diff)
rename dirs
Diffstat (limited to 'libkms++util/stopwatch.h')
-rw-r--r--libkms++util/stopwatch.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/libkms++util/stopwatch.h b/libkms++util/stopwatch.h
deleted file mode 100644
index 9b60fa1..0000000
--- a/libkms++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;
-};