ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkRealTimeInterval.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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:
48 
50 
54 
57 
60 
63 
65  typedef double TimeRepresentationType;
66 
68  TimeRepresentationType GetTimeInMicroSeconds() const;
69  TimeRepresentationType GetTimeInMilliSeconds() const;
70  TimeRepresentationType GetTimeInSeconds() const;
71  TimeRepresentationType GetTimeInMinutes() const;
72  TimeRepresentationType GetTimeInHours() const;
73  TimeRepresentationType GetTimeInDays() const;
75 
77  Self operator-( const Self & ) const;
78  Self operator+( const Self & ) const;
79  const Self & operator-=( const Self & );
80  const Self & operator+=( const Self & );
82 
84  bool operator>( const Self & ) const;
85  bool operator<( const Self & ) const;
86  bool operator==( const Self & ) const;
87  bool operator!=( const Self & ) const;
88  bool operator<=( const Self & ) const;
89  bool operator>=( const Self & ) const;
91 
95 
97  friend ITKCommon_EXPORT std::ostream & operator<<(std::ostream & os, const RealTimeInterval & v);
98 
99 private:
100 
101  friend class RealTimeStamp;
102 
105 
111 
112 };
113 
114 } // end of namespace itk
115 
116 #endif // __itkRealTimeInterval_h
bool operator!=(const ImageRegionCopier< D1, D2 > &c1, const ImageRegionCopier< D1, D2 > &c2)
ConstNeighborhoodIterator< TImage > operator-(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
MicroSecondsDifferenceType m_MicroSeconds
typedef::itksysFundamentalType_Int64 int64_t
Definition: itkIntTypes.h:88
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
Definition: itkArray.h:184
SecondsDifferenceType m_Seconds
The RealTimeStamp is a data structure for representing time with high precision and a large dynamic r...
A data structure for representing the time span between two RealTimeStamps, with similar high precisi...
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)