Medical Imaging Interaction Toolkit  2018.4.99-936b789b
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkRealTimeClock.h"
14 
15 
16 // check if MITK runs on a Windows-System
17 #ifdef _WIN32
19 #else // should be Linux or macOS
20  #include "mitkLinuxRealTimeClock.h"
21 #endif
22 
23 mitk::RealTimeClock::Pointer mitk::RealTimeClock::New()
24 {
25  mitk::RealTimeClock::Pointer smartPtr;
26 
27 #ifdef _WIN32
29 #else
30  smartPtr = mitk::LinuxRealTimeClock::New();
31 #endif
32 
33  return smartPtr;
34 }
static Pointer New()
static Pointer New(void)
instanciates a new, operating-system dependant, instance of mitk::RealTimeClock.