Skip to content

Commit

Permalink
Merge pull request #41 from MissouriMRDT/hotfix/chrono-namespace
Browse files Browse the repository at this point in the history
Fix deprecated use of certain chrono namespace.
  • Loading branch information
ClayJay3 authored Sep 24, 2024
2 parents 21bfd79 + 9436c03 commit 0eac125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/AutonomyThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ class AutonomyThread
void RunThread(std::atomic_bool& bStopThread)
{
// Declare instance variables.
std::chrono::_V2::system_clock::time_point tmStartTime;
std::chrono::system_clock::time_point tmStartTime;

// Loop until stop flag is set.
while (!bStopThread)
Expand All @@ -620,7 +620,7 @@ class AutonomyThread
if (m_nMainThreadMaxIterationPerSecond > 0)
{
// Get end execution time.
std::chrono::_V2::system_clock::time_point tmEndTime = std::chrono::high_resolution_clock::now();
std::chrono::system_clock::time_point tmEndTime = std::chrono::high_resolution_clock::now();
// Get execution time of user code.
std::chrono::microseconds tmElapsedTime = std::chrono::duration_cast<std::chrono::microseconds>(tmEndTime - tmStartTime);
// Check if the elapsed time is slower than the max iterations per seconds.
Expand Down

0 comments on commit 0eac125

Please sign in to comment.