Skip to content

Commit

Permalink
Update time sync consumer frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Feb 6, 2024
1 parent 3c8aa21 commit b295a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2i-hub/CDASimAdapter/src/CDASimAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ namespace CDASimAdapter{
void CDASimAdapter::start_time_sync_thread_timer() {
PLOG(logDEBUG) << "Creating Thread Timer for time sync" << std::endl;
if ( !time_sync_timer ) {
time_sync_timer = std::make_unique<tmx::utils::ThreadTimer>();
time_sync_timer = std::make_unique<tmx::utils::ThreadTimer>(std::chrono::milliseconds(5));
}
time_sync_tick_id = time_sync_timer->AddPeriodicTick([this]() {
PLOG(logDEBUG1) << "Listening for time sync messages from CDASim." << std::endl;
this->attempt_time_sync();
} // end of lambda expression
, std::chrono::milliseconds(100));
, std::chrono::milliseconds(5));
time_sync_timer->Start();
}

Expand Down

0 comments on commit b295a7e

Please sign in to comment.