23 double in_elapsed_seconds,
24 double in_delta_seconds,
25 double in_platform_timestamp)
55 return !(*
this == rhs);
75inline std::ostream &
operator<<(std::ostream &out, const ::carla::client::Timestamp ×tamp) {
76 out <<
"Timestamp(frame=" << std::to_string(timestamp.frame)
77 <<
",elapsed_seconds=" << std::to_string(timestamp.elapsed_seconds)
78 <<
",delta_seconds=" << std::to_string(timestamp.delta_seconds)
79 <<
",platform_timestamp=" << std::to_string(timestamp.platform_timestamp) <<
')';
std::size_t frame
自模拟器启动以来经过的帧数。
Timestamp(std::size_t in_frame, double in_elapsed_seconds, double in_delta_seconds, double in_platform_timestamp)
double delta_seconds
模拟自上一帧以来经过的秒数。
bool operator!=(const Timestamp &rhs) const
double platform_timestamp
进行此测量的帧的时间戳,以操作系统给出的秒数为单位。
double elapsed_seconds
模拟自当前情境开始以来经过的秒数。
bool operator==(const Timestamp &rhs) const
std::ostream & operator<<(std::ostream &out, const ::carla::client::Timestamp ×tamp)
标准输出流操作