X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestInline.cxx;h=a11eaff85a6cee5744b10a0b0551c5e2d1a7bac3;hb=bd7bec4c367d671a9da358584e98a8ec29bb641e;hp=33feed842836dcaeed7f14c61e43d1fc16c180ff;hpb=3472c954f3196f1564d3181d3b5e074c176411c0;p=gdcm.git diff --git a/Testing/TestInline.cxx b/Testing/TestInline.cxx index 33feed84..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/09/25 10:07:42 $ - Version: $Revision: 1.14 $ + 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,11 +31,16 @@ #include "gdcmUtil.h" -#ifdef _MSC_VER +#if defined(__BORLANDC__) || defined (_MSC_VER) #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 + std::cout << (double) (b-a) << std::endl + #else #include #define GET_TIME(a) times(&a) @@ -182,7 +187,7 @@ double passDirectDouble(double a, double b) int TestInline(int argc, char *argv[]) { -#ifdef _MSC_VER +#if defined(__BORLANDC__) || defined (_MSC_VER) clock_t tms1, tms2; #else struct tms tms1, tms2; @@ -572,7 +577,7 @@ int TestInline(int argc, char *argv[]) GET_TIME(tms2); HOW_LONG(tms2,tms1); - return 1; // will generate an error, + //return 1; // will generate an error, // just to allow us to see the full log in the dashboard - //return 0; + return 0; }