Class performance_counter_policy

Synopsis

#include "breeze/time/windows_only/performance_counter_timer.hpp"

class performance_counter_policy

Description

A timer policy using Windows' QueryPerformanceCounter().

Methods

performance_counter_policy overloadDeleted copy constructor.
elapsed
operator=Deleted copy assignment operator.
resolution
start

Source

Lines 27-50 in breeze/time/windows_only/performance_counter_timer.hpp.

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

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

    typedef std::chrono::duration< long long, std::nano >
                        duration_type ;
                        performance_counter_policy() ;

    void                start() ;
    duration_type       elapsed() const ;
    duration_type       resolution() const ;

private:
    long long           m_start ;
    long long           m_frequency ;
} ;