A Time class, can be used to hold wall- or sim-time.  
 More...
#include <Types.hh>
A Time class, can be used to hold wall- or sim-time. 
stored as sec and nano-sec. 
 
◆ Time() [1/2]
◆ Time() [2/2]
  
  
      
        
          | sdf::v9::Time::Time  | 
          ( | 
          int32_t  | 
          _sec,  | 
         
        
           | 
           | 
          int32_t  | 
          _nsec  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | [in] | _sec | Seconds  | 
    | [in] | _nsec | Nanoseconds  | 
  
   
 
 
◆ operator==()
  
  
      
        
          | bool sdf::v9::Time::operator==  | 
          ( | 
          const Time &  | 
          _time | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Equal to operator. 
- Parameters
 - 
  
    | [in] | _time | the time to compare to.  | 
  
   
- Returns
 - true if values are the same, false otherwise. 
 
References nsec, and sec.
 
 
◆ operator<<
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          _out,  | 
         
        
           | 
           | 
          const Time &  | 
          _time  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Stream insertion operator. 
- Parameters
 - 
  
    | [in] | _out | the output stream  | 
    | [in] | _time | time to write to the stream  | 
  
   
- Returns
 - the output stream 
 
 
 
◆ operator>>
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          _in,  | 
         
        
           | 
           | 
          Time &  | 
          _time  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Stream extraction operator. 
- Parameters
 - 
  
    | [in] | _in | the input stream  | 
    | [in] | _time | time to read from to the stream  | 
  
   
- Returns
 - the input stream 
 
 
 
◆ nsec
      
        
          | int32_t sdf::v9::Time::nsec | 
        
      
 
 
◆ sec
      
        
          | int32_t sdf::v9::Time::sec | 
        
      
 
 
The documentation for this class was generated from the following file: