ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Member Functions | Public Attributes | Private Attributes | List of all members
etiss::Benchmark< clock_ > Class Template Reference

#include <Benchmark.h>

Inheritance diagram for etiss::Benchmark< clock_ >:
Inheritance graph
[legend]
Collaboration diagram for etiss::Benchmark< clock_ >:
Collaboration graph
[legend]

Public Member Functions

 Benchmark (const std::string &name)
 
void start ()
 
void stop (size_t interval_count=1)
 
std::string toString () const
 
- Public Member Functions inherited from etiss::ToString
 ToString ()
 
virtual ~ToString ()
 

Public Attributes

clock_ clock_inst
 
const std::string name_
 
std::list< std::pair< double, double > > interval_ns
 

Private Attributes

std::pair< double, doublecur
 
bool state
 

Detailed Description

template<typename clock_ = Default_Clock>
class etiss::Benchmark< clock_ >

Definition at line 66 of file Benchmark.h.

Constructor & Destructor Documentation

◆ Benchmark()

template<typename clock_ = Default_Clock>
etiss::Benchmark< clock_ >::Benchmark ( const std::string &  name)
inline

Definition at line 71 of file Benchmark.h.

Member Function Documentation

◆ start()

template<typename clock_ = Default_Clock>
void etiss::Benchmark< clock_ >::start ( )
inline

◆ stop()

template<typename clock_ = Default_Clock>
void etiss::Benchmark< clock_ >::stop ( size_t  interval_count = 1)
inline

◆ toString()

template<typename clock_ = Default_Clock>
std::string etiss::Benchmark< clock_ >::toString ( ) const
inline

Definition at line 92 of file Benchmark.h.

References etiss::benchmark::averageTime(), etiss::Benchmark< clock_ >::interval_ns, and etiss::Benchmark< clock_ >::name_.

Here is the call graph for this function:

Member Data Documentation

◆ clock_inst

template<typename clock_ = Default_Clock>
clock_ etiss::Benchmark< clock_ >::clock_inst

◆ cur

template<typename clock_ = Default_Clock>
std::pair<double, double> etiss::Benchmark< clock_ >::cur
private

◆ interval_ns

template<typename clock_ = Default_Clock>
std::list<std::pair<double, double> > etiss::Benchmark< clock_ >::interval_ns

◆ name_

template<typename clock_ = Default_Clock>
const std::string etiss::Benchmark< clock_ >::name_

Definition at line 70 of file Benchmark.h.

Referenced by etiss::Benchmark< clock_ >::toString().

◆ state

template<typename clock_ = Default_Clock>
bool etiss::Benchmark< clock_ >::state
private

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