Move async::executor::clock to async::clock
This commit is contained in:
parent
fdd57ba572
commit
cec776df8a
1 changed files with 2 additions and 1 deletions
|
|
@ -135,10 +135,11 @@ namespace psemek::async
|
|||
std::future<T> f_;
|
||||
};
|
||||
|
||||
using clock = std::chrono::high_resolution_clock;
|
||||
|
||||
struct executor
|
||||
{
|
||||
using task = util::function<void()>;
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue