From: schaerer Date: Mon, 8 Feb 2010 10:37:54 +0000 (+0000) Subject: UNIX -> unix X-Git-Tag: v1.2.0~823 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=48bcc0a77c8a2e2a6e6e06d0660bcace8ccf48e5;hp=3a3b13d43c061445e7fc700086b91bb4eae32aff;p=clitk.git UNIX -> unix --- 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)+ diff --git a/common/clitkTimer.h b/common/clitkTimer.h index 87edf5b..6fb1f0f 100644 --- a/common/clitkTimer.h +++ b/common/clitkTimer.h @@ -13,7 +13,7 @@ #include "clitkCommon.h" #include -#if defined(UNIX) +#if defined(unix) # include # include #elif defined(WIN32) @@ -43,7 +43,7 @@ namespace clitk { //==================================================================== protected: -#if defined(UNIX) +#if defined(unix) rusage mBegin; rusage mEnd; #elif defined(WIN32)