]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCBenchmark.h
Alignment fixes
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCBenchmark.h
CommitLineData
a6c02c85 1// @(#) $Id$
2
3#ifndef AliHLTTPCBenchmarkH
4#define AliHLTTPCBenchmarkH
5
6//_____________________________________________________________
7//
8// AliHLTTPCBenchmark
9//
10// Benchmark class for level3 code
11//
12//
13
14#ifndef no_root
15class TStopwatch;
16class TString;
17#else
18class AliHLTTPCStopwatch;
19#endif
20
21class AliHLTTPCBenchmark {
22
23public:
24 AliHLTTPCBenchmark();
25 virtual ~AliHLTTPCBenchmark();
26 Int_t GetBench(const char *name);
27 void Start(const char *name);
28 void Stop(const char *name);
29 void Analyze(const char* name);
30
31 static Double_t GetCpuTime();
32
33private:
34
35 Int_t fNbench; //Number of active benchmarks
36 Int_t fNmax; //Maximum number of benchmarks initialized
37#ifndef no_root
38 TString *fNames; //Names of benchmarks
39 TStopwatch *fTimer; //Timers
40#else
41 Char_t **fNames; //Names of benchmarks
42 AliHLTTPCStopwatch *fTimer; //Timers
43#endif
44 Float_t *fSum; //sum of time
45 Float_t *fMin; //min of time
46 Float_t *fMax; //max of time
47 Int_t *fCount;// counter
48
49 ClassDef(AliHLTTPCBenchmark,0) //HLTTPC benchmark
50};
51
52#endif