2 // Original: AliHLTBenchmark.h,v 1.6 2004/06/26 11:39:40 loizides
4 #ifndef ALIHLTTPCBENCHMARK_H
5 #define ALIHLTTPCBENCHMARK_H
7 //_____________________________________________________________
11 // Benchmark class for level3 code
19 class AliHLTTPCStopwatch;
22 class AliHLTTPCBenchmark {
25 /** standard constructor */
28 virtual ~AliHLTTPCBenchmark();
29 Int_t GetBench(const Char_t *name);
30 void Start(const Char_t *name);
31 void Stop(const char *name);
32 void Analyze(const Char_t* name);
34 static Double_t GetCpuTime();
37 /** copy constructor prohibited */
38 AliHLTTPCBenchmark(const AliHLTTPCBenchmark&);
39 /** assignment operator prohibited */
40 AliHLTTPCBenchmark& operator=(const AliHLTTPCBenchmark&);
42 Int_t fNbench; //Number of active benchmarks
43 Int_t fNmax; //Maximum number of benchmarks initialized
45 TString *fNames; //! Names of benchmarks
46 TStopwatch *fTimer; //! Timers
48 Char_t **fNames; //! Names of benchmarks
49 AliHLTTPCStopwatch *fTimer; //! Timers
51 Float_t *fSum; //! sum of time
52 Float_t *fMin; //! min of time
53 Float_t *fMax; //! max of time
54 Int_t *fCount;//! counter
56 ClassDef(AliHLTTPCBenchmark,0) //HLTTPC benchmark
59 #endif // ALIHLTTPCBENCHMARK_H