Skip to content

Commit c6312ab

Browse files
committed
fix duration microsec
1 parent 91adfce commit c6312ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

yolox_ros_cpp/yolox_ros_cpp/src/yolox_ros_cpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ namespace yolox_ros_cpp
120120
auto objects = this->yolox_->inference(frame);
121121
auto end = std::chrono::system_clock::now();
122122

123-
auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(end - now);
124-
RCLCPP_INFO(this->get_logger(), "Inference time: %5ld ms", elapsed.count());
123+
auto elapsed = std::chrono::duration_cast<std::chrono::microseconds>(end - now);
124+
RCLCPP_INFO(this->get_logger(), "Inference time: %5ld us", elapsed.count());
125125

126126
yolox_cpp::utils::draw_objects(frame, objects, this->class_names_);
127127
if (this->params_.imshow_isshow)

0 commit comments

Comments
 (0)