1#ifndef Podd_THaBenchmark_h_
2#define Podd_THaBenchmark_h_
24 virtual void Begin(
const char *name) {
34 Warning(
"Start",
"too many benches");
40 for(
const auto&
name : names )
42 for(
const auto&
name : names )
57 auto fmt = std::cout.flags();
58 auto prec = std::cout.precision();
60 if (bench < 0)
return;
61 std::cout << std::left << std::setw(
width) <<
name <<
": " << std::right
63 << std::fixed << std::setw(6) << std::setprecision(2)
66 << std::fixed << std::setw(6) << std::setprecision(2)
67 <<
fCpuTime[bench] <<
" seconds" << std::endl;
69 std::cout.precision(prec);
#define ClassDef(name, id)
Int_t GetBench(const char *name) const
virtual void Start(const char *name)
virtual void Begin(const char *name)
void PrintByName(const std::vector< TString > &names) const
void PrintBenchmark(const char *name, int width=10) const
virtual ~THaBenchmark()=default
virtual void Print(Option_t *name="") const
virtual void Warning(const char *method, const char *msgfmt,...) const
void Start(Bool_t reset=kTRUE)
Double_t Max(Double_t a, Double_t b)