clean up a bit, start some documentation
This commit is contained in:
parent
e3fc02ebb6
commit
05cc87b2e9
3 changed files with 17 additions and 1 deletions
|
@ -266,7 +266,8 @@ int main(int argc, char **argv)
|
|||
rclcpp::shutdown();
|
||||
|
||||
std::ofstream output_file;
|
||||
std::string suffix = "_rtis_alloc";
|
||||
// useful if testing different variations
|
||||
std::string suffix = "";
|
||||
if (schedule_type == DEADLINE)
|
||||
{
|
||||
output_file.open("experiments/results/f1tenth_full" + std::to_string(NUM_EXECUTORS) + "c" + suffix + ".txt");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "priority_executor/primes_workload.hpp"
|
||||
#include <iostream>
|
||||
ktimeunit nth_prime_silly(int n, double millis)
|
||||
{
|
||||
// struct tms this_thread_times;
|
||||
|
@ -23,6 +24,10 @@ ktimeunit nth_prime_silly(int n, double millis)
|
|||
{
|
||||
sum += j;
|
||||
}
|
||||
if (cum_time - start_cpu_time > millis)
|
||||
{
|
||||
std::cout << "Warning: Time limit exceeded" << std::endl;
|
||||
}
|
||||
}
|
||||
return get_thread_time(&currTime) - start_cpu_time;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue