X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=common%2FclitkTimer.cxx;h=ac4033e76c75bcc9de50eff12fe17701b9e9fd69;hb=8973673f3f984656ec3552b5d963ba7b18119d39;hp=6f39dc0e7ee335769bcea697c681fc130685baed;hpb=4a567a442ac0d844a894e5de071d51a505d07f4a;p=clitk.git diff --git a/common/clitkTimer.cxx b/common/clitkTimer.cxx index 6f39dc0..ac4033e 100644 --- a/common/clitkTimer.cxx +++ b/common/clitkTimer.cxx @@ -28,7 +28,7 @@ clitk::Timer::Timer() { //==================================================================== void clitk::Timer::Start() { -#if defined(UNIX) +#if defined(unix) getrusage(RUSAGE_SELF, &mBegin); #elif defined(WIN32) QueryPerformanceCounter((LARGE_INTEGER*)&mBegin); @@ -39,7 +39,7 @@ void clitk::Timer::Start() { //==================================================================== void clitk::Timer::Stop(bool accumulate) { -#if defined(UNIX) +#if defined(unix) getrusage(RUSAGE_SELF, &mEnd); if (accumulate) { mElapsed += (mEnd.ru_utime.tv_usec - mBegin.ru_utime.tv_usec)+