4 ===================================================================
6 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
7 * @date 18 Jul 2007 16:26:08
11 ===================================================================*/
13 #include "clitkCommon.h"
16 # include <sys/time.h>
17 # include <sys/resource.h>
29 //====================================================================
32 void Stop(bool accumulate=true);
34 void Print(std::ostream & os=std::cout) const;
35 void Print(std::string text, std::ostream & os=std::cout) const;
36 //====================================================================
38 //====================================================================
39 long double GetTimeInMicroSecond() const { return mElapsed; }
40 long double GetMeanTimeInMicroSecond() const { return mElapsed/mNumberOfCall; }
41 long int GetNumberOfCall() const { return mNumberOfCall; }
42 //====================================================================
49 unsigned __int64 mBegin;
50 unsigned __int64 mEnd;
51 unsigned __int64 mFrequency;
54 long int mNumberOfCall;
60 #endif /* end #define CLITKTIMER_H */