API
 
Loading...
Searching...
No Matches
Stopwatch< Clock > Class Template Reference

#include <util.hpp>

Collaboration diagram for Stopwatch< Clock >:
Collaboration graph

Public Member Functions

 Stopwatch ()
 
template<typename Rep = typename Clock::duration::rep, typename Units = typename Clock::duration>
Rep elapsedTime () const
 

Private Attributes

Clock::time_point start_point
 

Detailed Description

template<typename Clock = std::chrono::high_resolution_clock>
class Stopwatch< Clock >

Definition at line 25 of file util.hpp.

Constructor & Destructor Documentation

◆ Stopwatch()

template<typename Clock = std::chrono::high_resolution_clock>
Stopwatch< Clock >::Stopwatch ( )
inline

Definition at line 29 of file util.hpp.

Member Function Documentation

◆ elapsedTime()

template<typename Clock = std::chrono::high_resolution_clock>
template<typename Rep = typename Clock::duration::rep, typename Units = typename Clock::duration>
Rep Stopwatch< Clock >::elapsedTime ( ) const
inline

Definition at line 32 of file util.hpp.

Member Data Documentation

◆ start_point

template<typename Clock = std::chrono::high_resolution_clock>
Clock::time_point Stopwatch< Clock >::start_point
private

Definition at line 26 of file util.hpp.

Referenced by Stopwatch< Clock >::elapsedTime().


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