Added a static function GetCpuTime
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Sep 2001 10:47:45 +0000 (10:47 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Sep 2001 10:47:45 +0000 (10:47 +0000)
HLT/src/AliL3Benchmark.cxx
HLT/src/AliL3Benchmark.h

index 385ed1f..800e424 100644 (file)
@@ -1,3 +1,5 @@
+
+#include <time.h>
 #include <TFile.h>
 #include "TGraphAsymmErrors.h"
 #include "TString.h"
@@ -152,4 +154,7 @@ void AliL3Benchmark::Analyze(const char* name){
   delete[] eyh;
 }
 
-
+Double_t AliL3Benchmark::GetCpuTime()
+{
+  {return (Double_t)(clock()) / CLOCKS_PER_SEC;}
+}
index 92a3a78..1eb9da3 100644 (file)
@@ -26,7 +26,9 @@ public:
    void       Start(const char *name);
    void       Stop(const char *name);
    void       Analyze(const char* name);
-
+   
+   static Double_t GetCpuTime();
+   
    ClassDef(AliL3Benchmark,0)  //L3 benchmark
 };