CARLA
Public Types | Public Member Functions | Private Attributes | List of all members
carla::detail::StopWatchTmpl< CLOCK > Class Template Reference

#include <StopWatch.h>

+ Collaboration diagram for carla::detail::StopWatchTmpl< CLOCK >:

Public Types

using clock = CLOCK
 

Public Member Functions

clock::duration GetDuration () const
 
template<class RESOLUTION = std::chrono::milliseconds>
size_t GetElapsedTime () const
 
bool IsRunning () const
 
void Restart ()
 
void Stop ()
 
 StopWatchTmpl ()
 

Private Attributes

clock::time_point _end
 
bool _is_running
 
clock::time_point _start
 

Detailed Description

template<typename CLOCK>
class carla::detail::StopWatchTmpl< CLOCK >

Definition at line 16 of file StopWatch.h.

Member Typedef Documentation

◆ clock

template<typename CLOCK >
using carla::detail::StopWatchTmpl< CLOCK >::clock = CLOCK

Definition at line 20 of file StopWatch.h.

Constructor & Destructor Documentation

◆ StopWatchTmpl()

template<typename CLOCK >
carla::detail::StopWatchTmpl< CLOCK >::StopWatchTmpl ( )
inline

Definition at line 22 of file StopWatch.h.

Member Function Documentation

◆ GetDuration()

template<typename CLOCK >
clock::duration carla::detail::StopWatchTmpl< CLOCK >::GetDuration ( ) const
inline

Definition at line 34 of file StopWatch.h.

References carla::detail::StopWatchTmpl< CLOCK >::_end, carla::detail::StopWatchTmpl< CLOCK >::_is_running, and carla::detail::StopWatchTmpl< CLOCK >::_start.

Referenced by carla::detail::StopWatchTmpl< CLOCK >::GetElapsedTime().

+ Here is the caller graph for this function:

◆ GetElapsedTime()

template<typename CLOCK >
template<class RESOLUTION = std::chrono::milliseconds>
size_t carla::detail::StopWatchTmpl< CLOCK >::GetElapsedTime ( ) const
inline

Definition at line 39 of file StopWatch.h.

References carla::detail::StopWatchTmpl< CLOCK >::GetDuration().

+ Here is the call graph for this function:

◆ IsRunning()

template<typename CLOCK >
bool carla::detail::StopWatchTmpl< CLOCK >::IsRunning ( ) const
inline

Definition at line 43 of file StopWatch.h.

References carla::detail::StopWatchTmpl< CLOCK >::_is_running.

◆ Restart()

template<typename CLOCK >
void carla::detail::StopWatchTmpl< CLOCK >::Restart ( )
inline

◆ Stop()

template<typename CLOCK >
void carla::detail::StopWatchTmpl< CLOCK >::Stop ( void  )
inline

Member Data Documentation

◆ _end

template<typename CLOCK >
clock::time_point carla::detail::StopWatchTmpl< CLOCK >::_end
private

◆ _is_running

template<typename CLOCK >
bool carla::detail::StopWatchTmpl< CLOCK >::_is_running
private

◆ _start

template<typename CLOCK >
clock::time_point carla::detail::StopWatchTmpl< CLOCK >::_start
private

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