CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
LinuxElapsedTime Class Reference

#include <LinuxCPUTime.h>

Public Member Functions

 LinuxElapsedTime (const std::string &iname="Total", std::ostream &iout=*dout)
 
 ~LinuxElapsedTime ()
 

Static Public Attributes

static std::ostream * dout = &std::cout
 

Private Attributes

LinuxCPUTime begin
 
std::string name
 
std::ostream & out
 

Detailed Description

Definition at line 41 of file LinuxCPUTime.h.

Constructor & Destructor Documentation

LinuxElapsedTime::LinuxElapsedTime ( const std::string &  iname = "Total",
std::ostream &  iout = *dout 
)
inline

Definition at line 44 of file LinuxCPUTime.h.

45  : out(iout), name(iname){}
std::string name
Definition: LinuxCPUTime.h:50
std::ostream & out
Definition: LinuxCPUTime.h:49
LinuxElapsedTime::~LinuxElapsedTime ( )

Definition at line 6 of file LinuxCPUTime.cc.

References begin, end, name, out, and LinuxCPUTime::utime().

6  {
8  out << "\n" << name << " CPU elapsed time "
9  << end.utime()-begin.utime()
10  << std::endl;
11 }
LinuxCPUTime begin
Definition: LinuxCPUTime.h:51
std::string name
Definition: LinuxCPUTime.h:50
#define end
Definition: vmac.h:37
std::ostream & out
Definition: LinuxCPUTime.h:49
TimeType utime() const
Definition: LinuxCPUTime.h:31

Member Data Documentation

LinuxCPUTime LinuxElapsedTime::begin
private

Definition at line 51 of file LinuxCPUTime.h.

Referenced by ~LinuxElapsedTime().

std::ostream * LinuxElapsedTime::dout = &std::cout
static

Definition at line 43 of file LinuxCPUTime.h.

std::string LinuxElapsedTime::name
private
std::ostream& LinuxElapsedTime::out
private

Definition at line 49 of file LinuxCPUTime.h.

Referenced by ~LinuxElapsedTime().