Move async::executor::clock to async::clock

This commit is contained in:
Nikita Lisitsa 2021-02-20 22:09:48 +03:00
parent fdd57ba572
commit cec776df8a

View file

@ -135,10 +135,11 @@ namespace psemek::async
std::future<T> f_; std::future<T> f_;
}; };
using clock = std::chrono::high_resolution_clock;
struct executor struct executor
{ {
using task = util::function<void()>; using task = util::function<void()>;
using clock = std::chrono::high_resolution_clock;
// Post the task for execution. Where and when will // Post the task for execution. Where and when will
// it be executed is up to a concrete executor, as // it be executed is up to a concrete executor, as