tsm 0.1.0
|
Helper to implement a Timed Execution Policy. More...
#include <tsm.h>
Public Types | |
using | ClockType = Clock |
using | DurationType = Duration |
Public Member Functions | |
void | start () |
Duration | elapsed () const |
template<typename ToDuration = Duration> | |
Duration | elapsed (ToDuration since) const |
template<typename ToDuration > | |
ToDuration | elapsed () const |
bool | started () const |
void | reset () |
void | stop () |
Protected Attributes | |
Clock::time_point | start_time_ |
bool | started_ { false } |
Helper to implement a Timed Execution Policy.
using tsm::detail::Timer< Clock, Duration >::ClockType = Clock |
using tsm::detail::Timer< Clock, Duration >::DurationType = Duration |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |