From aaf7f0e978405147d304e151642f72f870dfbe46 Mon Sep 17 00:00:00 2001 From: dekken Date: Wed, 5 Jun 2024 13:20:23 +0200 Subject: [PATCH] :skull: --- .gitignore | 1 + inc/phlop/timing/scope_timer.hpp | 4 +--- tests/timing/test_scope_timer.cpp | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index f7d6c22..4a751a5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ bin __pycache__ dist phlop.egg-info/ +scope_timer.txt diff --git a/inc/phlop/timing/scope_timer.hpp b/inc/phlop/timing/scope_timer.hpp index 7692401..a662e62 100644 --- a/inc/phlop/timing/scope_timer.hpp +++ b/inc/phlop/timing/scope_timer.hpp @@ -15,8 +15,6 @@ #include #include -// #include "core/logger.hpp" -// #include "core/utilities/mpi_utils.hpp" #include "phlop/macros/def/string.hpp" namespace phlop @@ -95,7 +93,7 @@ struct ScopeTimerMan struct RunTimerReportSnapshot { - RunTimerReportSnapshot(RunTimerReport* s, RunTimerReport* p, std::uint32_t&& t) + RunTimerReportSnapshot(RunTimerReport* s, RunTimerReport* p, std::uint64_t const& t) : self{s} , parent{p} , time{t} diff --git a/tests/timing/test_scope_timer.cpp b/tests/timing/test_scope_timer.cpp index 997e37e..af7efcc 100644 --- a/tests/timing/test_scope_timer.cpp +++ b/tests/timing/test_scope_timer.cpp @@ -1,8 +1,6 @@ #include "phlop/timing/scope_timer.hpp" -#include "magic_enum/magic_enum_all.hpp" - using namespace std::chrono_literals; void fny() @@ -27,7 +25,7 @@ void fn1() { PHLOP_SCOPE_TIMER("fn1"); - std::this_thread::sleep_for(10ms); + std::this_thread::sleep_for(100ms); PHLOP_SCOPE_TIMER("fn1b"); fn0(); }