ITK  5.2.0
Insight Toolkit
itkRealTimeInterval.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkRealTimeInterval_h
19 #define itkRealTimeInterval_h
20 
21 #include "itkIntTypes.h"
22 #include "itkMacro.h"
23 #include <iostream>
24 
25 namespace itk
26 {
45 class ITKCommon_EXPORT RealTimeInterval
46 {
47 public:
49 
53 
56 
59 
62 
64  using TimeRepresentationType = double;
65 
68  GetTimeInMicroSeconds() const;
70  GetTimeInMilliSeconds() const;
72  GetTimeInSeconds() const;
74  GetTimeInMinutes() const;
76  GetTimeInHours() const;
78  GetTimeInDays() const;
80 
82  Self
83  operator-(const Self &) const;
84  Self
85  operator+(const Self &) const;
86  const Self &
87  operator-=(const Self &);
88  const Self &
89  operator+=(const Self &);
91 
93  bool
94  operator>(const Self &) const;
95  bool
96  operator<(const Self &) const;
97  bool
98  operator==(const Self &) const;
99  bool
100  operator!=(const Self &) const;
101  bool
102  operator<=(const Self &) const;
103  bool
104  operator>=(const Self &) const;
106 
110 
112  friend ITKCommon_EXPORT std::ostream &
113  operator<<(std::ostream & os, const RealTimeInterval & v);
114 
115 private:
116  friend class RealTimeStamp;
117 
120 
126 };
127 
128 } // end of namespace itk
129 
130 #endif // itkRealTimeInterval_h
itk::operator<
bool operator<(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:546
itk::operator<=
bool operator<=(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:560
itk::operator<<
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
Definition: itkArray.h:218
itk::RealTimeInterval::MicroSecondsDifferenceType
int64_t MicroSecondsDifferenceType
Definition: itkRealTimeInterval.h:52
itk::operator-
ConstNeighborhoodIterator< TImage > operator-(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
Definition: itkConstNeighborhoodIterator.h:679
itk::RealTimeStamp
The RealTimeStamp is a data structure for representing time with high precision and a large dynamic r...
Definition: itkRealTimeStamp.h:45
itk::RealTimeInterval::SecondsDifferenceType
int64_t SecondsDifferenceType
Definition: itkRealTimeInterval.h:51
itk::int64_t
::int64_t int64_t
Definition: itkIntTypes.h:34
itkMacro.h
itk::operator>=
bool operator>=(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:567
itk::operator>
bool operator>(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:553
itk::operator==
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:532
itkIntTypes.h
itk::operator!=
bool operator!=(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:539
itk::RealTimeInterval
A data structure for representing the time span between two RealTimeStamps, with similar high precisi...
Definition: itkRealTimeInterval.h:45
itk::RealTimeInterval::TimeRepresentationType
double TimeRepresentationType
Definition: itkRealTimeInterval.h:64
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::operator+
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
Definition: itkConstNeighborhoodIterator.h:661
itk::RealTimeInterval::m_MicroSeconds
MicroSecondsDifferenceType m_MicroSeconds
Definition: itkRealTimeInterval.h:125
itk::RealTimeInterval::m_Seconds
SecondsDifferenceType m_Seconds
Definition: itkRealTimeInterval.h:119