tsm  0.1.0
Public Member Functions | Protected Attributes | List of all members
tsm::PeriodicSleepTimer< Clock, Duration > Struct Template Reference

#include <tsm_impl.h>

Inheritance diagram for tsm::PeriodicSleepTimer< Clock, Duration >:
Inheritance graph
Collaboration diagram for tsm::PeriodicSleepTimer< Clock, Duration >:
Collaboration graph

Public Member Functions

 PeriodicSleepTimer (Duration period=Duration(1))
 
void start ()
 
void wait ()
 
Duration get_period () const
 
- Public Member Functions inherited from tsm::Timer< AccurateClock, typename Clock::duration >
void start ()
 
typename Clock::duration elapsed () const
 
typename Clock::duration elapsed (ToDuration since) const
 
ToDuration elapsed () const
 
bool started () const
 
void reset ()
 
void stop ()
 

Protected Attributes

Duration period_
 
- Protected Attributes inherited from tsm::Timer< AccurateClock, typename Clock::duration >
Clock::time_point start_time_
 
bool started_
 

Additional Inherited Members

- Public Types inherited from tsm::Timer< AccurateClock, typename Clock::duration >
using ClockType = AccurateClock
 
using DurationType = typename Clock::duration
 

Constructor & Destructor Documentation

◆ PeriodicSleepTimer()

template<typename Clock = AccurateClock, typename Duration = typename Clock::duration>
tsm::PeriodicSleepTimer< Clock, Duration >::PeriodicSleepTimer ( Duration  period = Duration(1))
inline

Member Function Documentation

◆ get_period()

template<typename Clock = AccurateClock, typename Duration = typename Clock::duration>
Duration tsm::PeriodicSleepTimer< Clock, Duration >::get_period ( ) const
inline

◆ start()

template<typename Clock = AccurateClock, typename Duration = typename Clock::duration>
void tsm::PeriodicSleepTimer< Clock, Duration >::start ( )
inline

◆ wait()

template<typename Clock = AccurateClock, typename Duration = typename Clock::duration>
void tsm::PeriodicSleepTimer< Clock, Duration >::wait ( )
inline

Member Data Documentation

◆ period_

template<typename Clock = AccurateClock, typename Duration = typename Clock::duration>
Duration tsm::PeriodicSleepTimer< Clock, Duration >::period_
protected

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