]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 385ed1fd9f12f392c9c0042203ba2dda5beb2803..800e42413cd28c0a9bc9b78b78df7d89749737d2 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 92a3a78da49d99ed60528c7dc2f4be912356666b..1eb9da3d6da651e4c24d7c3076ba66c3740129a1 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
 };