From cec776df8acbc39cbf9845f9cebfc09f52318357 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 20 Feb 2021 22:09:48 +0300 Subject: [PATCH] Move async::executor::clock to async::clock --- libs/async/include/psemek/async/executor.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/async/include/psemek/async/executor.hpp b/libs/async/include/psemek/async/executor.hpp index 9eb3e6f9..79600206 100644 --- a/libs/async/include/psemek/async/executor.hpp +++ b/libs/async/include/psemek/async/executor.hpp @@ -135,10 +135,11 @@ namespace psemek::async std::future f_; }; + using clock = std::chrono::high_resolution_clock; + struct executor { using task = util::function; - using clock = std::chrono::high_resolution_clock; // Post the task for execution. Where and when will // it be executed is up to a concrete executor, as