]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/src/AliL3Benchmark.h
-lMC replaced by -lVMC -lGeom
[u/mrichter/AliRoot.git] / HLT / src / AliL3Benchmark.h
CommitLineData
108615fc 1#ifndef AliL3_Benchmark
2#define AliL3_Benchmark
3
73d9267f 4#ifndef no_root
108615fc 5#include <Rtypes.h>
108615fc 6class TStopwatch;
7class TString;
73d9267f 8#else
73d9267f 9#include "AliL3RootTypes.h"
10#include "AliL3Stopwatch.h"
11#endif
12
108615fc 13class AliL3Benchmark {
14
15private:
16
17 Int_t fNbench; //Number of active benchmarks
18 Int_t fNmax; //Maximum number of benchmarks initialized
73d9267f 19#ifndef no_root
108615fc 20 TString *fNames; //Names of benchmarks
21 TStopwatch *fTimer; //Timers
73d9267f 22#else
23 Char_t **fNames;
24 AliL3Stopwatch *fTimer;
25#endif
108615fc 26 Float_t *fSum;
27 Float_t *fMin;
28 Float_t *fMax;
29 Int_t *fCount;
73d9267f 30 //TStopwatch *fStopwatch; //Stopwatch
108615fc 31
108615fc 32public:
73d9267f 33 AliL3Benchmark();
34 virtual ~AliL3Benchmark();
108615fc 35 Int_t GetBench(const char *name);
36 void Start(const char *name);
37 void Stop(const char *name);
38 void Analyze(const char* name);
0c547964 39
40 static Double_t GetCpuTime();
41
108615fc 42 ClassDef(AliL3Benchmark,0) //L3 benchmark
43};
44
45#endif