Skip to content

Commit

Permalink
PR build_and_test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinken committed Oct 23, 2023
1 parent 9ef7240 commit 84e4d27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions performance_metrics/src/resource_usage_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ void ResourceUsageLogger::start(std::chrono::milliseconds period)
std::cout << "[ResourceUsageLogger]: Logging to " << m_filename << std::endl;

m_t1_real_start = std::chrono::steady_clock::now();
//m_t1_user = std::clock();
//m_t1_real = std::chrono::steady_clock::now();
m_logger_thread_done = false;

// create a detached thread that monitors resource usage periodically
Expand All @@ -59,7 +57,7 @@ void ResourceUsageLogger::start(std::chrono::milliseconds period)
int64_t i = 1;
while (m_is_logging) {
// Updating m_t1_user and m_t1_real here will have the effect of calculating
// resource utilization only over the last `period` milliseconds, *not*
// resource utilization only over the last `period` milliseconds, *not*
// since program start.
m_t1_user = std::clock();
m_t1_real = std::chrono::steady_clock::now();
Expand Down

0 comments on commit 84e4d27

Please sign in to comment.