Skip to content
Merged
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
6 changes: 3 additions & 3 deletions modules/core/task/include/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <stdexcept>
#include <string>

using namespace std::chrono;

namespace ppc::core {

/// @brief Represents the type of task (parallelization technology).
Expand Down Expand Up @@ -201,7 +199,9 @@ class Task {
}

if (str == "PostProcessing") {
auto duration = duration_cast<nanoseconds>(high_resolution_clock::now() - tmp_time_point_).count();
auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::high_resolution_clock::now() -
tmp_time_point_)
.count();
auto diff = static_cast<double>(duration) * 1e-9;

std::stringstream err_msg;
Expand Down
Loading