13 #ifndef __PROCESS_CLOCK_HPP__ 14 #define __PROCESS_CLOCK_HPP__ 48 lambda::function<
void(
const std::list<Timer>&)>&& callback);
74 const lambda::function<
void()>& thunk);
138 #endif // __PROCESS_CLOCK_HPP__ Provides timers.
Definition: clock.hpp:37
static bool cancel(const Timer &timer)
static void order(ProcessBase *from, ProcessBase *to)
Definition: process.hpp:72
static void update(const Time &time)
Definition: duration.hpp:32
Definition: clock.hpp:102
Definition: clock.hpp:103
static void advance(const Duration &duration)
Update
Definition: clock.hpp:100
Definition: executor.hpp:48
static Time now()
The current clock time for either the current process that makes this call or the global clock time i...
static Timer timer(const Duration &duration, const lambda::function< void()> &thunk)
static void pause()
Pauses the clock e.g.
static void initialize(lambda::function< void(const std::list< Timer > &)> &&callback)
Initialize the clock with the specified callback that will be invoked whenever a batch of timers has ...
static bool paused()
Check whether clock is currently running.
static void finalize()
Clears all timers without executing them.
Try< std::vector< Value > > time(const std::string &hierarchy, const std::string &cgroup)