]> Creatis software - gdcm.git/commitdiff
Forgot to comment out Linux specific code (CPU time computation)
authorjpr <jpr>
Tue, 18 Jul 2006 10:12:56 +0000 (10:12 +0000)
committerjpr <jpr>
Tue, 18 Jul 2006 10:12:56 +0000 (10:12 +0000)
Example/MakeDicomDir.cxx

index 2cb6d11825e86fd07e57fb4c05f23f2db2d8b69b..c3ea3e2d27a34be73a99fcd5ff666a1613e7b26d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: MakeDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/07/17 13:25:00 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2006/07/18 10:12:56 $
+  Version:   $Revision: 1.22 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -22,7 +22,7 @@
 #include "gdcmDebug.h"
 #include "gdcmArgMgr.h"
 
-#include <sys/times.h>
+//#include <sys/times.h> // Linux Only
 
 #include <iostream>
 
@@ -109,13 +109,13 @@ int main(int argc, char *argv[])
    dcmdir->SetDirectoryName(dirName);
    //dcmdir->SetParseDir(true);
    
-      struct tms tms1, tms2; // Time measurements
-      times(&tms1);   
+     // struct tms tms1, tms2; // Time measurements
+     // times(&tms1);   
    dcmdir->Load();
-      times(&tms2);      
-      std::cout 
-        << (long) ((tms2.tms_utime)  - (tms1.tms_utime)) 
-        << std::endl;
+      //times(&tms2);      
+      //std::cout 
+      //  << (long) ((tms2.tms_utime)  - (tms1.tms_utime)) 
+      // << std::endl;
 
    if ( gdcm::Debug::GetDebugFlag() )
       std::cout << "======================= End Parsing Directory" << std::endl;