X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=common%2FclitkTimer.h;h=6fb1f0f67a37f92d30725f30a4b4f9527b3bdcff;hb=e534754cde3aee05927b1ca4aa6962dc05ee0322;hp=5f651c341f265cc23afcfda806b6332e14b54b90;hpb=0350f04002063f12dcf10ee765f5389590f352e7;p=clitk.git diff --git a/common/clitkTimer.h b/common/clitkTimer.h index 5f651c3..6fb1f0f 100644 --- a/common/clitkTimer.h +++ b/common/clitkTimer.h @@ -11,12 +11,14 @@ ===================================================================*/ -// #ifdef UNIX - #include "clitkCommon.h" #include -#include -#include +#if defined(unix) +# include +# include +#elif defined(WIN32) +# include +#endif #include #include @@ -41,8 +43,14 @@ namespace clitk { //==================================================================== protected: +#if defined(unix) rusage mBegin; rusage mEnd; +#elif defined(WIN32) + unsigned __int64 mBegin; + unsigned __int64 mEnd; + unsigned __int64 mFrequency; +#endif long double mElapsed; long int mNumberOfCall; };