TINC
Toolkit for Interactive Computation
tinc::PeriodicTask Class Reference

#include <PeriodicTask.hpp>

Public Member Functions

 ~PeriodicTask ()
 
bool start (std::function< bool()> func)
 
bool running ()
 
void stop ()
 
std::chrono::nanoseconds waitTime () const
 
void setWaitTime (std::chrono::nanoseconds waitTime)
 

Detailed Description

Definition at line 45 of file PeriodicTask.hpp.

Constructor & Destructor Documentation

◆ ~PeriodicTask()

tinc::PeriodicTask::~PeriodicTask ( )
inline

Definition at line 47 of file PeriodicTask.hpp.

Member Function Documentation

◆ running()

bool tinc::PeriodicTask::running ( )
inline

Definition at line 58 of file PeriodicTask.hpp.

◆ setWaitTime()

void tinc::PeriodicTask::setWaitTime ( std::chrono::nanoseconds  waitTime)

Definition at line 102 of file PeriodicTask.hpp.

◆ start()

bool tinc::PeriodicTask::start ( std::function< bool()>  func)
inline

Definition at line 49 of file PeriodicTask.hpp.

◆ stop()

void tinc::PeriodicTask::stop ( )
inline

Definition at line 60 of file PeriodicTask.hpp.

◆ waitTime()

std::chrono::nanoseconds tinc::PeriodicTask::waitTime ( ) const

Definition at line 100 of file PeriodicTask.hpp.


The documentation for this class was generated from the following file: