Skip to content

Commit

Permalink
💀
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Jun 5, 2024
1 parent 599f4d4 commit aaf7f0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ bin
__pycache__
dist
phlop.egg-info/
scope_timer.txt
4 changes: 1 addition & 3 deletions inc/phlop/timing/scope_timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <string_view>
#include <unordered_map>

// #include "core/logger.hpp"
// #include "core/utilities/mpi_utils.hpp"
#include "phlop/macros/def/string.hpp"

namespace phlop
Expand Down Expand Up @@ -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}
Expand Down
4 changes: 1 addition & 3 deletions tests/timing/test_scope_timer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

#include "phlop/timing/scope_timer.hpp"

#include "magic_enum/magic_enum_all.hpp"

using namespace std::chrono_literals;

void fny()
Expand All @@ -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();
}
Expand Down

0 comments on commit aaf7f0e

Please sign in to comment.