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::BenchmarkGrd ( const std::string &  name)
inline

Definition at line 11 of file BenchmarkGrd.h.

◆ ~BenchmarkGrd()

BenchmarkGrd::~BenchmarkGrd ( )
inline

Definition at line 13 of file BenchmarkGrd.h.

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  }

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

Member Data Documentation

◆ m_name

std::string BenchmarkGrd::m_name
private

Definition at line 20 of file BenchmarkGrd.h.

Referenced by ~BenchmarkGrd().

◆ m_start

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

Definition at line 19 of file BenchmarkGrd.h.

Referenced by ~BenchmarkGrd().

change_name.diff
diff
Definition: change_name.py:13
submitPVValidationJobs.now
now
Definition: submitPVValidationJobs.py:639
BenchmarkGrd::m_start
std::chrono::time_point< std::chrono::high_resolution_clock > m_start
Definition: BenchmarkGrd.h:19
BenchmarkGrd::m_name
std::string m_name
Definition: BenchmarkGrd.h:20
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17