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

#include <StopWatch.h>

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

◆ 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().

Referenced by TEST(), and TEST().

◆ 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 ( )
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: