Skip to content

Commit 680d49d

Browse files
committed
Remove chrono using directive
1 parent 81c3284 commit 680d49d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

modules/core/task/include/task.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <stdexcept>
1616
#include <string>
1717

18-
using namespace std::chrono;
1918

2019
namespace ppc::core {
2120

@@ -201,7 +200,9 @@ class Task {
201200
}
202201

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

207208
std::stringstream err_msg;

0 commit comments

Comments
 (0)