]> Creatis software - gdcm.git/blobdiff - Testing/TestUtil.cxx
ENH: Add test for GetCurrentDateTime. The two calls show a difference of one millisec...
[gdcm.git] / Testing / TestUtil.cxx
index b61aa4cd1ffe911d894455de16c7c66f341e8c27..a8393de54eb51bf7df8d216356f21df695d110d4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/07 13:39:32 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2005/01/21 16:07:54 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -23,6 +23,7 @@
 
 int TestUtil(int , char * [])
 {
+   std::cout << "Time:" << gdcm::Util::GetCurrentDateTime() << std::endl;
    // Unique UID test
    std::cout << gdcm::Util::CreateUniqueUID("") << std::endl;
    
@@ -43,5 +44,10 @@ int TestUtil(int , char * [])
    if(  gdcm::Util::DicomStringEqual(d,ref) ) 
       return 1;
 
+   // MAC Adress
+   std::cout << "Mac Address:" << gdcm::Util::GetMACAddress() << std::endl;
+
+   std::cout << "Time:" << gdcm::Util::GetCurrentDateTime() << std::endl;
+
    return 0;
 }