Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRealTimeClock.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkRealTimeClock.h"
18 
19 
20 // check if MITK runs on a Windows-System
21 #ifdef _WIN32
23 #else // should be Linux or Mac OSX
24  #include "mitkLinuxRealTimeClock.h"
25 #endif
26 
28 {
30 
31 #ifdef _WIN32
33 #else
34  smartPtr = mitk::LinuxRealTimeClock::New();
35 #endif
36 
37  return smartPtr;
38 }
itk::SmartPointer< Self > Pointer
static Pointer New()
static Pointer New(void)
instanciates a new, operating-system dependant, instance of mitk::RealTimeClock.