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

Go to the source code of this file.

Classes

struct  tester_rdtsc
 
struct  tester_rdtscp
 
struct  tester_gettimeofday
 
struct  tester_clock_gettime_REALTIME
 
struct  tester_clock_gettime_REALTIME_COARSE
 
struct  tester_clock_gettime_MONOTONIC
 
struct  tester_clock_gettime_MONOTONIC_COARSE
 
struct  tester_clock_gettime_MONOTONIC_RAW
 
struct  tester_clock_gettime_PROCESS_CPUTIME_ID
 
struct  tester_clock_gettime_THREAD_CPUTIME_ID
 
struct  tester_std_chrono_high_resolution_clock
 
struct  tester_std_chrono_steady_clock
 
struct  tester_std_chrono_system_clock
 
struct  tester_boost_chrono_high_resolution_clock
 
struct  tester_boost_chrono_steady_clock
 
struct  tester_boost_chrono_system_clock
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

using timed_results_t = ave_deviation_meter< double >
 
typedef boost::mpl::list< tester_rdtsc, tester_rdtscp, tester_gettimeofday, tester_clock_gettime_REALTIME, tester_clock_gettime_REALTIME_COARSE, tester_clock_gettime_MONOTONIC, tester_clock_gettime_MONOTONIC_COARSE, tester_clock_gettime_MONOTONIC_RAW, tester_clock_gettime_PROCESS_CPUTIME_ID, tester_clock_gettime_THREAD_CPUTIME_ID, tester_std_chrono_high_resolution_clock, tester_std_chrono_steady_clock, tester_std_chrono_system_clock, tester_boost_chrono_high_resolution_clock, tester_boost_chrono_steady_clock, tester_boost_chrono_system_clocktimer_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (time, test, timer_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file timers.cpp.

Typedef Documentation

◆ timed_results_t

using timed_results_t = ave_deviation_meter<double>

Definition at line 44 of file timers.cpp.

◆ timer_types

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE()

BOOST_AUTO_TEST_CASE_TEMPLATE ( time  ,
test  ,
timer_types   
)

\xrefitem test 22. \xrefitem test 172.

Definition at line 268 of file timers.cpp.