NeoPZ
Public Member Functions | Protected Attributes | List of all members
ElapsedTimeRunStat Class Reference

#include <stats_recorder.h>

Inheritance diagram for ElapsedTimeRunStat:
[legend]
Collaboration diagram for ElapsedTimeRunStat:
[legend]

Public Member Functions

 ElapsedTimeRunStat ()
 
void start ()
 
void stop ()
 
void print (ostream &os) const
 
int setCellValues (CSVStringTable &st, unsigned row) const
 
void clearStats ()
 
double getElapsedMS () const
 
- Public Member Functions inherited from RunStat
virtual ~RunStat ()
 

Protected Attributes

timeval lap
 
timeval total
 

Detailed Description

Definition at line 642 of file stats_recorder.h.

Constructor & Destructor Documentation

◆ ElapsedTimeRunStat()

ElapsedTimeRunStat::ElapsedTimeRunStat ( )
inline

Definition at line 646 of file stats_recorder.h.

Member Function Documentation

◆ clearStats()

void ElapsedTimeRunStat::clearStats ( )
inlinevirtual

Reset the statistics.

Implements RunStat.

Definition at line 690 of file stats_recorder.h.

◆ getElapsedMS()

double ElapsedTimeRunStat::getElapsedMS ( ) const
inline

Definition at line 696 of file stats_recorder.h.

Referenced by gflops().

◆ print()

void ElapsedTimeRunStat::print ( ostream &  os) const
inlinevirtual

Print the statistics

Implements RunStat.

Definition at line 671 of file stats_recorder.h.

◆ setCellValues()

int ElapsedTimeRunStat::setCellValues ( CSVStringTable st,
unsigned  row 
) const
inlinevirtual

Set the contents of the statistics table. The idea is to keep one table for each segment of code. New runs are appended to the table. Returns: the new_row number if Ok the setCell error code (< 0) if Error.

Implements RunStat.

Definition at line 684 of file stats_recorder.h.

References CSVTable< Tvar >::nRows(), and CSVTable< Tvar >::setCell().

◆ start()

void ElapsedTimeRunStat::start ( )
inlinevirtual

Implements RunStat.

Definition at line 652 of file stats_recorder.h.

Referenced by profile().

◆ stop()

void ElapsedTimeRunStat::stop ( )
inlinevirtual

Implements RunStat.

Definition at line 658 of file stats_recorder.h.

Referenced by profile().

Member Data Documentation

◆ lap

timeval ElapsedTimeRunStat::lap
protected

Definition at line 706 of file stats_recorder.h.

◆ total

timeval ElapsedTimeRunStat::total
protected

Definition at line 707 of file stats_recorder.h.


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