diff --git a/src/util/stopwatch.h b/src/util/stopwatch.h index e35380153..e8665054b 100644 --- a/src/util/stopwatch.h +++ b/src/util/stopwatch.h @@ -31,7 +31,8 @@ class stopwatch bool m_running = false; #endif - static std::chrono::time_point get() { + // FIXME: just use auto with VS 2015+ + static decltype(std::chrono::steady_clock::now()) get() { return std::chrono::steady_clock::now(); }