Class steady_clock_policy

Synopsis

#include "breeze/time/steady_clock_timer.hpp"

class steady_clock_policy

Description

A policy for our timer template using std::chrono::steady_clock.

Note
This policy does not provide the resolution() member.

Methods

steady_clock_policy overloadDeleted copy constructor.
steady_clock_policy overloadSee the timer documentation.
elapsedSee the timer documentation.
operator=Deleted copy assignment operator.
startSee the timer documentation.

Source

Lines 31-65 in breeze/time/steady_clock_timer.hpp.

class steady_clock_policy
{
public:
    //!     Deleted copy constructor.
    // -----------------------------------------------------------------------
                        steady_clock_policy( steady_clock_policy const & ) =
                                                                        delete ;

    //!     Deleted copy assignment operator.
    // -----------------------------------------------------------------------
    steady_clock_policy &
                        operator =(          steady_clock_policy const & ) =
                                                                        delete ;

    //!     A typedef for \c std::chrono::steady_clock::duration.
    // -----------------------------------------------------------------------
    typedef std::chrono::steady_clock::duration
                        duration_type ;

    //!     See the \link timer timer\endlink documentation.
    // -----------------------------------------------------------------------
                        steady_clock_policy() ;

    //!     See the \link timer timer\endlink documentation.
    // -----------------------------------------------------------------------
    void                start() noexcept ;

    //!     See the \link timer timer\endlink documentation.
    // -----------------------------------------------------------------------
    duration_type       elapsed() const noexcept ;

private:
    std::chrono::steady_clock::time_point
                        m_start_time ;
} ;