5 ===================================================================
7 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
8 * @date 18 Jul 2007 16:26:08
12 ===================================================================*/
16 #include "clitkCommon.h"
19 #include <sys/resource.h>
27 //====================================================================
30 void Stop(bool accumulate=true);
32 void Print(std::ostream & os=std::cout) const;
33 void Print(std::string text, std::ostream & os=std::cout) const;
34 //====================================================================
36 //====================================================================
37 long double GetTimeInMicroSecond() const { return mElapsed; }
38 long double GetMeanTimeInMicroSecond() const { return mElapsed/mNumberOfCall; }
39 long int GetNumberOfCall() const { return mNumberOfCall; }
40 //====================================================================
46 long int mNumberOfCall;
52 #endif /* end #define CLITKTIMER_H */