]> Creatis software - gdcm.git/blobdiff - Testing/TestInline.cxx
Add Paulo Henrique Junqueira Amorim in contributors list
[gdcm.git] / Testing / TestInline.cxx
index e7fcfeeb1513868edbcda3875a79fdb158544bbd..a11eaff85a6cee5744b10a0b0551c5e2d1a7bac3 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestInline.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/09/28 07:35:49 $
-  Version:   $Revision: 1.15 $
+  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
 
 #include "gdcmUtil.h"
 
-#ifdef _MSC_VER
+#if defined(__BORLANDC__)  || defined (_MSC_VER)
 #include <time.h>
+   #if defined(__BORLANDC__)
+   #include <stdio.h>
+   #include <stdlib.h>
+   #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 <sys/times.h>
 #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;