ITK  5.3.0
Insight Toolkit
itkRealTimeStamp.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 itkRealTimeStamp_h
19 #define itkRealTimeStamp_h
20 
21 #include "itkRealTimeInterval.h"
22 #include "itkMacro.h"
23 #include <iostream>
24 
25 namespace itk
26 {
45 class ITKCommon_EXPORT RealTimeStamp
46 {
47 public:
49 
50  friend class RealTimeClock;
51 
53  RealTimeStamp();
54 
56  ~RealTimeStamp();
57 
60 
63  GetTimeInMicroSeconds() const;
65  GetTimeInMilliSeconds() const;
67  GetTimeInSeconds() const;
69  GetTimeInMinutes() const;
71  GetTimeInHours() const;
73  GetTimeInDays() const;
75 
78  operator-(const Self &) const;
79  Self
80  operator+(const RealTimeInterval &) const;
81  Self
82  operator-(const RealTimeInterval &) const;
83  const Self &
84  operator+=(const RealTimeInterval &);
85  const Self &
86  operator-=(const RealTimeInterval &);
88 
90  bool
91  operator>(const Self &) const;
92  bool
93  operator<(const Self &) const;
94  bool
95  operator==(const Self &) const;
96  ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self);
97  bool
98  operator<=(const Self &) const;
99  bool
100  operator>=(const Self &) const;
102 
104  friend ITKCommon_EXPORT std::ostream &
105  operator<<(std::ostream & os, const RealTimeStamp & v);
106 
107 private:
110 
113 
116 
120 };
121 
122 } // end of namespace itk
123 
124 #endif // itkRealTimeStamp_h
itk::uint64_t
std::uint64_t uint64_t
Definition: itkIntTypes.h:35
itk::RealTimeStamp::SecondsDifferenceType
RealTimeInterval::SecondsDifferenceType SecondsDifferenceType
Definition: itkRealTimeStamp.h:114
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::RealTimeStamp::SecondsCounterType
uint64_t SecondsCounterType
Definition: itkRealTimeStamp.h:108
itkRealTimeInterval.h
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
itk::RealTimeClock
Provides a timestamp from a real-time clock.
Definition: itkRealTimeClock.h:39
itk::RealTimeStamp::TimeRepresentationType
RealTimeInterval::TimeRepresentationType TimeRepresentationType
Definition: itkRealTimeStamp.h:59
itk::RealTimeStamp::MicroSecondsCounterType
uint64_t MicroSecondsCounterType
Definition: itkRealTimeStamp.h:109
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::RealTimeStamp::m_Seconds
SecondsCounterType m_Seconds
Definition: itkRealTimeStamp.h:118
itk::RealTimeStamp::m_MicroSeconds
MicroSecondsCounterType m_MicroSeconds
Definition: itkRealTimeStamp.h:119
itk::operator+
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
Definition: itkConstNeighborhoodIterator.h:654
itk::RealTimeStamp::MicroSecondsDifferenceType
RealTimeInterval::MicroSecondsDifferenceType MicroSecondsDifferenceType
Definition: itkRealTimeStamp.h:115