We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39dbc6c commit 190aec2Copy full SHA for 190aec2
modules/core/task/include/task.hpp
@@ -15,8 +15,6 @@
15
#include <stdexcept>
16
#include <string>
17
18
-using namespace std::chrono;
19
-
20
namespace ppc::core {
21
22
/// @brief Represents the type of task (parallelization technology).
@@ -201,7 +199,9 @@ class Task {
201
199
}
202
200
203
if (str == "PostProcessing") {
204
- 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();
205
auto diff = static_cast<double>(duration) * 1e-9;
206
207
std::stringstream err_msg;
0 commit comments