Changeset 173:995dee26a025 in rrlib_util


Ignore:
Timestamp:
02.10.2020 17:39:52 (3 weeks ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Adapts to changes in rrlib_time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tTime.h

    r128 r173  
    8989 
    9090  //! constructor that gets a time in seconds plus microseconds 
    91   tTime(const rrlib::time::tTimestamp &timestamp) 
     91  tTime(const rrlib::time::tSystemTimestamp &timestamp) 
    9292  { 
    9393    // 1970-01-01T00:00:00+00:00 
    94     const rrlib::time::tTimestamp unix_timestamp = std::chrono::system_clock::from_time_t(0); 
     94    const rrlib::time::tSystemTimestamp unix_timestamp = std::chrono::system_clock::from_time_t(0); 
    9595    rrlib::time::tDuration duration = timestamp - unix_timestamp; 
    9696    tv_sec = std::chrono::duration_cast <std::chrono::seconds> (duration).count(); 
     
    372372  } 
    373373 
    374   operator rrlib::time::tTimestamp() const 
    375   { 
    376     rrlib::time::tTimestamp timestamp = std::chrono::system_clock::from_time_t((time_t) this->tv_sec); 
     374  operator rrlib::time::tSystemTimestamp() const 
     375  { 
     376    rrlib::time::tSystemTimestamp timestamp = std::chrono::system_clock::from_time_t((time_t) this->tv_sec); 
    377377    return timestamp + std::chrono::duration_cast<rrlib::time::tDuration>(std::chrono::microseconds(this->tv_usec)); 
    378378  } 
Note: See TracChangeset for help on using the changeset viewer.