λ61
|
#include <AsyncTimer.hpp>
Public Member Functions | |
AsyncTimer (Mode mode) | |
void | start (std::uint32_t duration) override |
void | reset () override |
bool | isFinished () const override |
bool | isRuning () const |
~AsyncTimer () override=default | |
Public Member Functions inherited from l61::EventSystem::Timing::AbstractTimer | |
AbstractTimer (Mode mode=Mode::MILLISECONDS) | |
operator bool () const | |
Mode | getMode () const |
virtual | ~AbstractTimer ()=default |
Public Member Functions inherited from l61::Object | |
virtual | ~Object ()=default |
virtual std::string | toString () const |
Returns a human-readable string representation of the object. | |
virtual std::size_t | hashCode () const |
Returns a hash code for the object. | |
std::string | typeName () const |
Returns the demangled name of the type. | |
const std::type_info & | typeInfo () const |
Returns RTTI type information object. | |
virtual nlohmann::json | toJsonValue () const |
Serializes the object into JSON form. | |
operator std::string () const | |
Explicit conversion operator to std::string. | |
operator nlohmann::json () const | |
Explicit conversion operator to nlohmann::json. |
Private Attributes | |
std::atomic< bool > | m_finished {false} |
std::atomic< bool > | m_running {false} |
std::future< void > | m_task |
Additional Inherited Members | |
Public Types inherited from l61::EventSystem::Timing::AbstractTimer | |
enum class | Mode : bool { SECONDS , MILLISECONDS } |
|
explicit |
|
overridedefault |
|
overridevirtual |
Implements l61::EventSystem::Timing::AbstractTimer.
bool l61::EventSystem::Timing::AsyncTimer::isRuning | ( | ) | const |
|
overridevirtual |
Implements l61::EventSystem::Timing::AbstractTimer.
|
overridevirtual |
Implements l61::EventSystem::Timing::AbstractTimer.
|
private |
|
private |
|
private |