29 typedef std::chrono::high_resolution_clock
Clock;
43 events_[
idx_] = Clock::now();
48 std::chrono::time_point<std::chrono::high_resolution_clock> t_min =
49 std::chrono::time_point<std::chrono::high_resolution_clock>::max();
50 std::chrono::time_point<std::chrono::high_resolution_clock> t_max =
51 std::chrono::time_point<std::chrono::high_resolution_clock>::min();
53 for (
auto const& e : events_)
61 auto diff = t_max - t_min;
62 auto secs = std::chrono::duration_cast<std::chrono::seconds>(
diff).count();
63 auto ms = std::chrono::duration_cast<std::chrono::microseconds>(
diff).count();
64 std::chrono::duration<double>
test(t_max - t_min);
65 LOG_INFO(
"Recieved 250 messages at %f Hz", (250.0 / test.count()));
bool consume(RTState_V1_6__7 &state)
IMETHOD Vector diff(const Vector &p_w_a, const Vector &p_w_b, double dt=1)
#define LOG_INFO(format,...)
bool consume(RTState_V3_2__3 &state)
Clock::time_point events_[250]
bool consume(RTState_V1_8 &state)
bool consume(RTState_V3_0__1 &state)
std::chrono::high_resolution_clock Clock