tsm 0.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tsm::detail::IntervalTimer< Clock, Duration > Struct Template Reference

#include <tsm.h>

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

Public Member Functions

Duration interval ()
 
- Public Member Functions inherited from tsm::detail::Timer< Clock, Duration >
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 ()
 

Additional Inherited Members

- Public Types inherited from tsm::detail::Timer< Clock, Duration >
using ClockType = Clock
 
using DurationType = Duration
 
- Protected Attributes inherited from tsm::detail::Timer< Clock, Duration >
Clock::time_point start_time_
 
bool started_ { false }
 

Member Function Documentation

◆ interval()

template<typename Clock = std::chrono::steady_clock, typename Duration = typename Clock::duration>
Duration tsm::detail::IntervalTimer< Clock, Duration >::interval ( )
inline

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