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.

std::chrono::time_point< std::chrono::high_resolution_clock > m_start
Definition: BenchmarkGrd.h:19
std::string m_name
Definition: BenchmarkGrd.h:20
BenchmarkGrd::~BenchmarkGrd ( )
inline

Definition at line 13 of file BenchmarkGrd.h.

References change_name::diff, m_name, m_start, and fileCollector::now.

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

Member Data Documentation

std::string BenchmarkGrd::m_name
private

Definition at line 20 of file BenchmarkGrd.h.

Referenced by ~BenchmarkGrd().

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

Definition at line 19 of file BenchmarkGrd.h.

Referenced by ~BenchmarkGrd().