X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestInline.cxx;h=a11eaff85a6cee5744b10a0b0551c5e2d1a7bac3;hb=224876ca6cbe71952f2a1d66d9853eca7745d3a0;hp=9e8673c5cf4abba510ac25501c52cae7cf303972;hpb=9ffeeef6818ad0eff08178f0e0808e4f97c0ef07;p=gdcm.git diff --git a/Testing/TestInline.cxx b/Testing/TestInline.cxx index 9e8673c5..a11eaff8 100755 --- a/Testing/TestInline.cxx +++ b/Testing/TestInline.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestInline.cxx,v $ Language: C++ - Date: $Date: 2007/10/29 17:13:23 $ - Version: $Revision: 1.16 $ + Date: $Date: 2007/10/30 09:07:46 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -31,18 +31,16 @@ #include "gdcmUtil.h" -#if defined(__BORLANDC__) +#if defined(__BORLANDC__) || defined (_MSC_VER) #include -#include -#include + #if defined(__BORLANDC__) + #include + #include + #endif #define GET_TIME(a) a=clock() #define HOW_LONG(b,a) \ std::cout << (double) (b-a) << std::endl -#elif def _MSC_VER -#include -#define GET_TIME(a) a=clock() -#define HOW_LONG(b,a) \ - std::cout << (double) (b-a) << std::endl + #else #include #define GET_TIME(a) times(&a) @@ -189,9 +187,7 @@ double passDirectDouble(double a, double b) int TestInline(int argc, char *argv[]) { -#if defined(__BORLANDC__) - clock_t tms1, tms2; -#elif def _MSC_VER +#if defined(__BORLANDC__) || defined (_MSC_VER) clock_t tms1, tms2; #else struct tms tms1, tms2;