CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BenchmarkGrd Class Reference

#include <BenchmarkGrd.h>

Public Member Functions

 BenchmarkGrd (const std::string &name)
 
 ~BenchmarkGrd ()
 

Private Attributes

std::string m_name
 
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
 

Detailed Description

Definition at line 9 of file BenchmarkGrd.h.

Constructor & Destructor Documentation

BenchmarkGrd::BenchmarkGrd ( const std::string &  name)
inline

Definition at line 11 of file BenchmarkGrd.h.

13  m_name( name )
14  {}
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
Definition: BenchmarkGrd.h:22
std::string m_name
Definition: BenchmarkGrd.h:23
BenchmarkGrd::~BenchmarkGrd ( )
inline

Definition at line 16 of file BenchmarkGrd.h.

References diffTreeTool::diff, m_name, m_start, and cmsPerfSuiteHarvest::now.

16  {
17  std::chrono::duration< double, std::milli > diff = std::chrono::high_resolution_clock::now() - m_start;
18  edm::LogVerbatim("Geometry") << "Benchmark '" << m_name << "' took " << diff.count() << " millis\n";
19  }
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
Definition: BenchmarkGrd.h:22
std::string m_name
Definition: BenchmarkGrd.h:23

Member Data Documentation

std::string BenchmarkGrd::m_name
private

Definition at line 23 of file BenchmarkGrd.h.

Referenced by ~BenchmarkGrd().

std::chrono::time_point<std::chrono::high_resolution_clock> BenchmarkGrd::m_start
private

Definition at line 22 of file BenchmarkGrd.h.

Referenced by ~BenchmarkGrd().