CARLA
Loading...
Searching...
No Matches
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

Definition at line 34 of file StopWatch.h.

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

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.

◆ Restart()

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

Definition at line 24 of file StopWatch.h.

◆ Stop()

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

Definition at line 29 of file StopWatch.h.

Member Data Documentation

◆ _end

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

Definition at line 51 of file StopWatch.h.

◆ _is_running

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

Definition at line 53 of file StopWatch.h.

◆ _start

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

Definition at line 49 of file StopWatch.h.


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