ITK  5.2.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  bool
97  operator!=(const Self &) const;
98  bool
99  operator<=(const Self &) const;
100  bool
101  operator>=(const Self &) const;
103 
105  friend ITKCommon_EXPORT std::ostream &
106  operator<<(std::ostream & os, const RealTimeStamp & v);
107 
108 private:
111 
114 
117 
121 };
122 
123 } // end of namespace itk
124 
125 #endif // itkRealTimeStamp_h
itk::RealTimeStamp::SecondsDifferenceType
RealTimeInterval::SecondsDifferenceType SecondsDifferenceType
Definition: itkRealTimeStamp.h:115
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::RealTimeStamp::SecondsCounterType
uint64_t SecondsCounterType
Definition: itkRealTimeStamp.h:109
itkRealTimeInterval.h
itk::uint64_t
::uint64_t uint64_t
Definition: itkIntTypes.h:35
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
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:110
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::RealTimeStamp::m_Seconds
SecondsCounterType m_Seconds
Definition: itkRealTimeStamp.h:119
itk::RealTimeStamp::m_MicroSeconds
MicroSecondsCounterType m_MicroSeconds
Definition: itkRealTimeStamp.h:120
itk::operator+
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
Definition: itkConstNeighborhoodIterator.h:661
itk::RealTimeStamp::MicroSecondsDifferenceType
RealTimeInterval::MicroSecondsDifferenceType MicroSecondsDifferenceType
Definition: itkRealTimeStamp.h:116