cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator
TimeKeeper.h File Reference
#include <string>
#include <unordered_map>
#include <vector>
#include "CepGen/Utils/Timer.h"
+ Include dependency graph for TimeKeeper.h:

Go to the source code of this file.

Classes

class  TimeKeeper
 Collection of clocks to benchmark execution blocks. More...
 
class  TimeKeeper::Ticker
 Scoped timekeeping utility. More...
 

Namespaces

namespace  cepgen
 Common namespace for this Monte Carlo generator.
 
namespace  cepgen::utils
 Collection of utilities.
 

Macros

#define CG_CONCAT(a, b)   a##b
 
#define CG_TICKER_NAME(a, b)   CG_CONCAT(a, b)
 
#define CG_TICKER(tmr)   utils::TimeKeeper::Ticker CG_TICKER_NAME(ticker, __COUNTER__)(tmr, __PRETTY_FUNCTION__)
 

Macro Definition Documentation

◆ CG_CONCAT

#define CG_CONCAT ( a,
b )   a##b

Definition at line 28 of file TimeKeeper.h.

◆ CG_TICKER

#define CG_TICKER ( tmr)    utils::TimeKeeper::Ticker CG_TICKER_NAME(ticker, __COUNTER__)(tmr, __PRETTY_FUNCTION__)

Definition at line 30 of file TimeKeeper.h.

◆ CG_TICKER_NAME

#define CG_TICKER_NAME ( a,
b )   CG_CONCAT(a, b)

Definition at line 29 of file TimeKeeper.h.