Public Member Functions | Private Attributes | List of all members
X86_Timer Class Reference

#include <x86_timer.hh>

Public Member Functions

void add_get_click (void)
 
void clear (void)
 
void dump_history (string filemane)
 
void dump_statistics (string filemane)
 
void fill_history_clicks (void)
 
void find_frequency (void)
 
double frequency (void)
 
unsigned long long get_click (void)
 
double get_elapsed_time_in_second (void)
 
double get_mean_clicks (void)
 
double get_most_occured_clicks (void)
 
double get_shortest_clicks (void)
 
void start (void)
 
void stop (void)
 
 X86_Timer (void)
 

Private Attributes

union {
   unsigned long int   n32 [2]
 
   unsigned long long   n64
 
_click_start
 
union {
   unsigned long int   n32 [2]
 
   unsigned long long   n64
 
_click_stop
 
map< unsigned long long, unsigned long long > _counted_clicks
 
double _frequency
 
vector< double > _history_mean_clicks
 
vector< double > _history_most_occured_clicks
 
vector< double > _history_shortest_clicks
 
unsigned long long _nb_sample
 

Detailed Description

Definition at line 44 of file x86_timer.hh.

Constructor & Destructor Documentation

◆ X86_Timer()

X86_Timer::X86_Timer ( void  )
inline

Definition at line 48 of file x86_timer.hh.

Member Function Documentation

◆ add_get_click()

void X86_Timer::add_get_click ( void  )
inline

Definition at line 111 of file x86_timer.hh.

◆ clear()

void X86_Timer::clear ( void  )
inline

Definition at line 204 of file x86_timer.hh.

◆ dump_history()

void X86_Timer::dump_history ( string  filemane)
inline

Definition at line 133 of file x86_timer.hh.

◆ dump_statistics()

void X86_Timer::dump_statistics ( string  filemane)
inline

Definition at line 119 of file x86_timer.hh.

◆ fill_history_clicks()

void X86_Timer::fill_history_clicks ( void  )
inline

Definition at line 175 of file x86_timer.hh.

◆ find_frequency()

void X86_Timer::find_frequency ( void  )
inline

INFOS("CPU frequency : "<< _frequency);

Definition at line 84 of file x86_timer.hh.

◆ frequency()

double X86_Timer::frequency ( void  )
inline

Definition at line 67 of file x86_timer.hh.

◆ get_click()

unsigned long long X86_Timer::get_click ( void  )
inline

Definition at line 78 of file x86_timer.hh.

◆ get_elapsed_time_in_second()

double X86_Timer::get_elapsed_time_in_second ( void  )
inline

Definition at line 71 of file x86_timer.hh.

◆ get_mean_clicks()

double X86_Timer::get_mean_clicks ( void  )
inline

Definition at line 153 of file x86_timer.hh.

◆ get_most_occured_clicks()

double X86_Timer::get_most_occured_clicks ( void  )
inline

Definition at line 184 of file x86_timer.hh.

◆ get_shortest_clicks()

double X86_Timer::get_shortest_clicks ( void  )
inline

Definition at line 169 of file x86_timer.hh.

◆ start()

void X86_Timer::start ( void  )
inline

Definition at line 53 of file x86_timer.hh.

◆ stop()

void X86_Timer::stop ( void  )
inline

Definition at line 60 of file x86_timer.hh.

Member Data Documentation

◆ _click_start

union { ... } X86_Timer::_click_start

◆ _click_stop

union { ... } X86_Timer::_click_stop

◆ _counted_clicks

map<unsigned long long,unsigned long long> X86_Timer::_counted_clicks
private

Definition at line 233 of file x86_timer.hh.

◆ _frequency

double X86_Timer::_frequency
private

Definition at line 231 of file x86_timer.hh.

◆ _history_mean_clicks

vector<double> X86_Timer::_history_mean_clicks
private

Definition at line 235 of file x86_timer.hh.

◆ _history_most_occured_clicks

vector<double> X86_Timer::_history_most_occured_clicks
private

Definition at line 237 of file x86_timer.hh.

◆ _history_shortest_clicks

vector<double> X86_Timer::_history_shortest_clicks
private

Definition at line 236 of file x86_timer.hh.

◆ _nb_sample

unsigned long long X86_Timer::_nb_sample
private

Definition at line 239 of file x86_timer.hh.

◆ n32

unsigned long int X86_Timer::n32[2]

Definition at line 221 of file x86_timer.hh.

◆ n64

unsigned long long X86_Timer::n64

Definition at line 222 of file x86_timer.hh.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:10