DxLibEx
dxle::time::counter Class Reference

#include <time.hpp>

Public Member Functions

template<typename timing_maker_T , typename std::enable_if< std::is_base_of< timing_maker::timing_maker_bace, typename std::remove_reference< timing_maker_T >::type >::value, nullptr_t >::type = nullptr>
 counter (timing_maker_T &&timing_maker)
 
 counter (const counter &other)
 
 counter (counter &&other)
 
counteroperator= (const counter &other)
 
counteroperator= (counter &&other)
 
void start (void)
 
void stop (void)
 
bool is_stop (void)
 
void reset_pass_time (std::chrono::milliseconds=std::chrono::milliseconds{ 0 })
 
std::chrono::milliseconds get_pass_time ()
 
size_t get ()
 
void reset_count (size_t=0)
 

Detailed Description

Definition at line 100 of file time.hpp.

Constructor & Destructor Documentation

§ counter() [1/3]

template<typename timing_maker_T , typename std::enable_if< std::is_base_of< timing_maker::timing_maker_bace, typename std::remove_reference< timing_maker_T >::type >::value, nullptr_t >::type >
dxle::time::counter::counter ( timing_maker_T &&  timing_maker)
inline

Definition at line 204 of file time.hpp.

§ counter() [2/3]

dxle::time::counter::counter ( const counter other)
inline

Definition at line 211 of file time.hpp.

§ counter() [3/3]

dxle::time::counter::counter ( counter &&  other)
inline

Definition at line 227 of file time.hpp.

Member Function Documentation

§ get()

size_t dxle::time::counter::get ( )
inline

Definition at line 268 of file time.hpp.

§ get_pass_time()

std::chrono::milliseconds dxle::time::counter::get_pass_time ( void  )
inline

Definition at line 263 of file time.hpp.

§ is_stop()

bool dxle::time::counter::is_stop ( void  )
inline

Definition at line 251 of file time.hpp.

§ operator=() [1/2]

counter & dxle::time::counter::operator= ( const counter other)
inline

Definition at line 218 of file time.hpp.

§ operator=() [2/2]

counter & dxle::time::counter::operator= ( counter &&  other)
inline

Definition at line 234 of file time.hpp.

§ reset_count()

void dxle::time::counter::reset_count ( size_t  new_count = 0)
inline

Definition at line 273 of file time.hpp.

§ reset_pass_time()

void dxle::time::counter::reset_pass_time ( std::chrono::milliseconds  new_pass_time = std::chrono::milliseconds{ 0 })
inline

Definition at line 255 of file time.hpp.

§ start()

void dxle::time::counter::start ( void  )
inline

Definition at line 243 of file time.hpp.

§ stop()

void dxle::time::counter::stop ( void  )
inline

Definition at line 247 of file time.hpp.


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