Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static Library Compatibility #42

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ cmake_minimum_required(VERSION 3.24.3)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

## C++ Compiler Flags.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

## Project Name and Software Version Number
project(RoveComm_CPP VERSION 3.00.00)

Expand Down
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::system_clock::time_point tmStartTime;
std::chrono::high_resolution_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::system_clock::time_point tmEndTime = std::chrono::high_resolution_clock::now();
std::chrono::high_resolution_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
Loading