Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkDICOMTimeUtil.h
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 #ifndef mitkDICOMTimeUtil_h
14 #define mitkDICOMTimeUtil_h
15 
16 #include <chrono>
17 
18 #include <MitkDICOMExports.h>
19 
20 /* Forward declaration of a DCMTK class. The full definition is only needed in
21  the implementation. */
22 class OFDateTime;
23 
24 namespace mitk
25 {
33  MITKDICOM_EXPORT std::chrono::sys_time<std::chrono::milliseconds>
34  ConvertOFDateTimeToTimePoint(const OFDateTime& time);
35 
44  MITKDICOM_EXPORT double
45  ComputeMiliSecDuration(const OFDateTime& start, const OFDateTime& stop);
46 }
47 
48 #endif
#define MITKDICOM_EXPORT
Find image slices visible on a given plane.
MITKDICOM_EXPORT double ComputeMiliSecDuration(const OFDateTime &start, const OFDateTime &stop)
Compute the duration from start to stop in milliseconds.
MITKDICOM_EXPORT std::chrono::sys_time< std::chrono::milliseconds > ConvertOFDateTimeToTimePoint(const OFDateTime &time)
Convert a DCMTK OFDateTime to a std::chrono time_point.