CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FastTimerService::Resources Struct Reference

Public Member Functions

Resources operator+ (Resources const &other) const
 
Resourcesoperator+= (Resources const &other)
 
void reset ()
 
 Resources ()
 

Public Attributes

boost::chrono::nanoseconds time_real
 
boost::chrono::nanoseconds time_thread
 

Detailed Description

Definition at line 229 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::Resources::Resources ( )

Definition at line 65 of file FastTimerService.cc.

65  :
66  time_thread(boost::chrono::nanoseconds::zero()),
67  time_real(boost::chrono::nanoseconds::zero())
68 { }
boost::chrono::nanoseconds time_real
boost::chrono::nanoseconds time_thread

Member Function Documentation

FastTimerService::Resources FastTimerService::Resources::operator+ ( Resources const &  other) const
FastTimerService::Resources & FastTimerService::Resources::operator+= ( Resources const &  other)

Definition at line 77 of file FastTimerService.cc.

References time_real, and time_thread.

77  {
78  time_thread += other.time_thread;
79  time_real += other.time_real;
80  return *this;
81 }
boost::chrono::nanoseconds time_real
boost::chrono::nanoseconds time_thread
void FastTimerService::Resources::reset ( void  )

Definition at line 71 of file FastTimerService.cc.

References time_real, and time_thread.

Referenced by FastTimerService::ResourcesPerProcess::reset(), and FastTimerService::ResourcesPerJob::reset().

71  {
72  time_thread = boost::chrono::nanoseconds::zero();
73  time_real = boost::chrono::nanoseconds::zero();
74 }
boost::chrono::nanoseconds time_real
boost::chrono::nanoseconds time_thread

Member Data Documentation

boost::chrono::nanoseconds FastTimerService::Resources::time_real
boost::chrono::nanoseconds FastTimerService::Resources::time_thread