Agora  1.2.0
Agora project
TscTimer Class Reference

Simple time that uses RDTSC. More...

#include <timer.h>

Public Member Functions

 TscTimer (size_t n_timestamps, double freq_ghz)
 
void start ()
 
void stop ()
 
void reset ()
 
double stddev_msec ()
 
double avg_msec ()
 
 TscTimer (size_t n_timestamps, double freq_ghz)
 
void start ()
 
void stop ()
 
void reset ()
 
double stddev_msec ()
 
double avg_msec ()
 
 TscTimer (size_t n_timestamps, double freq_ghz)
 
void start ()
 
void stop ()
 
void reset ()
 
double stddev_msec ()
 
double avg_msec ()
 
double avg_usec ()
 
 TscTimer (size_t n_timestamps, double freq_ghz)
 
void start ()
 
void stop ()
 
void reset ()
 
double stddev_msec ()
 
double avg_msec ()
 
double avg_usec ()
 

Public Attributes

size_t start_tsc = 0
 
double freq_ghz
 
std::vector< double > ms_duration_vec
 

Detailed Description

Simple time that uses RDTSC.

Constructor & Destructor Documentation

◆ TscTimer() [1/4]

TscTimer::TscTimer ( size_t  n_timestamps,
double  freq_ghz 
)
inline

◆ TscTimer() [2/4]

TscTimer::TscTimer ( size_t  n_timestamps,
double  freq_ghz 
)
inline

◆ TscTimer() [3/4]

TscTimer::TscTimer ( size_t  n_timestamps,
double  freq_ghz 
)
inline

◆ TscTimer() [4/4]

TscTimer::TscTimer ( size_t  n_timestamps,
double  freq_ghz 
)
inline

Member Function Documentation

◆ avg_msec() [1/4]

double TscTimer::avg_msec ( )
inline

◆ avg_msec() [2/4]

double TscTimer::avg_msec ( )
inline
Here is the call graph for this function:

◆ avg_msec() [3/4]

double TscTimer::avg_msec ( )
inline
Here is the call graph for this function:

◆ avg_msec() [4/4]

double TscTimer::avg_msec ( )
inline
Here is the call graph for this function:

◆ avg_usec() [1/2]

double TscTimer::avg_usec ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ avg_usec() [2/2]

double TscTimer::avg_usec ( )
inline
Here is the call graph for this function:

◆ reset() [1/4]

void TscTimer::reset ( )
inline

◆ reset() [2/4]

void TscTimer::reset ( )
inline

◆ reset() [3/4]

void TscTimer::reset ( )
inline

◆ reset() [4/4]

void TscTimer::reset ( )
inline

◆ start() [1/4]

void TscTimer::start ( )
inline
Here is the call graph for this function:

◆ start() [2/4]

void TscTimer::start ( )
inline
Here is the call graph for this function:

◆ start() [3/4]

void TscTimer::start ( )
inline
Here is the call graph for this function:

◆ start() [4/4]

void TscTimer::start ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stddev_msec() [1/4]

double TscTimer::stddev_msec ( )
inline
Here is the call graph for this function:

◆ stddev_msec() [2/4]

double TscTimer::stddev_msec ( )
inline
Here is the call graph for this function:

◆ stddev_msec() [3/4]

double TscTimer::stddev_msec ( )
inline
Here is the call graph for this function:

◆ stddev_msec() [4/4]

double TscTimer::stddev_msec ( )
inline
Here is the call graph for this function:

◆ stop() [1/4]

void TscTimer::stop ( )
inline
Here is the call graph for this function:

◆ stop() [2/4]

void TscTimer::stop ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop() [3/4]

void TscTimer::stop ( )
inline
Here is the call graph for this function:

◆ stop() [4/4]

void TscTimer::stop ( )
inline
Here is the call graph for this function:

Member Data Documentation

◆ freq_ghz

double TscTimer::freq_ghz

◆ ms_duration_vec

std::vector< double > TscTimer::ms_duration_vec

◆ start_tsc

size_t TscTimer::start_tsc = 0

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