21 double in_elapsed_seconds,
22 double in_delta_seconds,
23 double in_platform_timestamp)
43 return frame == rhs.
frame;
47 return !(*
this == rhs);
65 inline std::ostream &
operator<<(std::ostream &out, const ::carla::client::Timestamp ×tamp) {
66 out <<
"Timestamp(frame=" << std::to_string(timestamp.frame)
67 <<
",elapsed_seconds=" << std::to_string(timestamp.elapsed_seconds)
68 <<
",delta_seconds=" << std::to_string(timestamp.delta_seconds)
69 <<
",platform_timestamp=" << std::to_string(timestamp.platform_timestamp) <<
')';
bool operator!=(const Timestamp &rhs) const
This file contains definitions of common data structures used in traffic manager. ...
std::size_t frame
Number of frames elapsed since the simulator was launched.
Timestamp(std::size_t in_frame, double in_elapsed_seconds, double in_delta_seconds, double in_platform_timestamp)
static std::ostream & operator<<(std::ostream &out, const Buffer &buf)
bool operator==(const Timestamp &rhs) const
double delta_seconds
Simulated seconds elapsed since previous frame.
double elapsed_seconds
Simulated seconds elapsed since the beginning of the current episode.
double platform_timestamp
Time-stamp of the frame at which this measurement was taken, in seconds as given by the OS...