ITK  5.3.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  ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self);
100  bool
101  operator<=(const Self &) const;
102  bool
103  operator>=(const Self &) const;
105 
109 
111  friend ITKCommon_EXPORT std::ostream &
112  operator<<(std::ostream & os, const RealTimeInterval & v);
113 
114 private:
115  friend class RealTimeStamp;
116 
119 
125 };
126 
127 } // end of namespace itk
128 
129 #endif // itkRealTimeInterval_h
itk::operator<
bool operator<(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:550
itk::operator<=
bool operator<=(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:564
itk::operator<<
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
Definition: itkArray.h:216
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:672
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
std::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:571
itk::operator>
bool operator>(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:557
itk::operator==
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)
Definition: itkIndex.h:536
itkIntTypes.h
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:654
itk::RealTimeInterval::m_MicroSeconds
MicroSecondsDifferenceType m_MicroSeconds
Definition: itkRealTimeInterval.h:124
itk::RealTimeInterval::m_Seconds
SecondsDifferenceType m_Seconds
Definition: itkRealTimeInterval.h:118