libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
hp_timer.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "core/thread_api_traits.hpp"
Include dependency graph for hp_timer.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::list< ppd::heavyweight_threading, ppd::sequential_mode > thread_types
 

Functions

 BOOST_AUTO_TEST_CASE (check_cpu_frequency)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (create_timer, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (check_timer_counter_counts, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (check_timer_usec_simply_increments, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (check_timer_usec_increments, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (create_interval, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE (measure_one_sec_thread_interval)
 
 BOOST_AUTO_TEST_CASE (measure_one_sec_seq_interval)
 
 BOOST_AUTO_TEST_CASE (measure_one_sec_pause)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file hp_timer.cpp.

Typedef Documentation

◆ thread_types

typedef boost::mpl::list<ppd::heavyweight_threading, ppd::sequential_mode> thread_types

Definition at line 30 of file hp_timer.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( check_cpu_frequency  )

Definition at line 34 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( measure_one_sec_pause  )

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( measure_one_sec_seq_interval  )

Definition at line 118 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( measure_one_sec_thread_interval  )

Definition at line 102 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( check_timer_counter_counts  ,
Mdl  ,
thread_types   
)

Definition at line 54 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( check_timer_usec_increments  ,
Mdl  ,
thread_types   
)

Definition at line 76 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( check_timer_usec_simply_increments  ,
Mdl  ,
thread_types   
)

Definition at line 67 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( create_interval  ,
Mdl  ,
thread_types   
)

Definition at line 92 of file hp_timer.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( create_timer  ,
Mdl  ,
thread_types   
)

Definition at line 46 of file hp_timer.cpp.