From 17d180891f1e237ea5d25835999a8b23a6e7946d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 11 Jun 2016 20:17:35 +0300 Subject: rename dirs --- libkms++util/stopwatch.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 libkms++util/stopwatch.h (limited to 'libkms++util/stopwatch.h') 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 - -class Stopwatch -{ -public: - void start() - { - m_start = std::chrono::steady_clock::now(); - } - - double elapsed_s() const - { - return std::chrono::duration(std::chrono::steady_clock::now() - m_start).count(); - } - - double elapsed_ms() const - { - return std::chrono::duration(std::chrono::steady_clock::now() - m_start).count(); - } - - double elapsed_us() const - { - return std::chrono::duration(std::chrono::steady_clock::now() - m_start).count(); - } - -private: - std::chrono::steady_clock::time_point m_start; -}; -- cgit v1.2.3