xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Timer Class Reference

#include <timer.h>

Public Member Functions

 Timer (int start=0)
 
 ~Timer (void)
 
void start (void)
 
void stop (void)
 
double report_usecs (void) const
 
std::ostream & printOn (std::ostream &os) const
 

Protected Attributes

struct timeval starttime_ stoptime_
 

Detailed Description

Definition at line 22 of file timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( int  start = 0)
inline

Definition at line 24 of file timer.h.

References start().

◆ ~Timer()

Timer::~Timer ( void  )
inline

Definition at line 25 of file timer.h.

Member Function Documentation

◆ printOn()

std::ostream& Timer::printOn ( std::ostream &  os) const
inline

Definition at line 37 of file timer.h.

References report_usecs(), and stoptime_.

Referenced by operator<<().

◆ report_usecs()

◆ start()

void Timer::start ( void  )
inline

◆ stop()

void Timer::stop ( void  )
inline

Member Data Documentation

◆ stoptime_

struct timeval starttime_ Timer::stoptime_
protected

Definition at line 37 of file timer.h.

Referenced by printOn(), report_usecs(), and stop().


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