00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-02-10 18:08:54 +0100 (Di, 10 Feb 2009) $ 00006 Version: $Revision: 16228 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #include "mitkRealTimeClock.h" 00019 00020 // check if MITK runs on a Windows-System 00021 #ifdef _WIN32 00022 #include "mitkWindowsRealTimeClock.h" 00023 #else // should be Linux or Mac OSX 00024 #include "mitkLinuxRealTimeClock.h" 00025 #endif 00026 00027 mitk::RealTimeClock::Pointer mitk::RealTimeClock::New() 00028 { 00029 mitk::RealTimeClock::Pointer smartPtr; 00030 00031 #ifdef _WIN32 00032 smartPtr = mitk::WindowsRealTimeClock::New(); 00033 #else 00034 smartPtr = mitk::LinuxRealTimeClock::New(); 00035 #endif 00036 00037 return smartPtr; 00038 }