]> Creatis software - clitk.git/blobdiff - common/clitkTimer.cxx
sorry, forgot to add this file in the last commit
[clitk.git] / common / clitkTimer.cxx
index 6f39dc0e7ee335769bcea697c681fc130685baed..ac4033e76c75bcc9de50eff12fe17701b9e9fd69 100644 (file)
@@ -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)+