simulator: change after perf_counter API change

This commit is contained in:
Julian Oes 2016-04-24 19:49:15 +02:00 committed by Lorenz Meier
parent fa6fe4ca96
commit 944acfaf75
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ void Simulator::handle_message(mavlink_message_t *msg, bool publish)
px4_clock_gettime(CLOCK_REALTIME, &ts);
uint64_t timestamp = ts.tv_sec * 1000 * 1000 + ts.tv_nsec / 1000;
perf_set(_perf_sim_delay, timestamp - sim_timestamp);
perf_set_elapsed(_perf_sim_delay, timestamp - sim_timestamp);
perf_count(_perf_sim_interval);
if (publish) {