Skip to content

Commit

Permalink
Update src/tree_node.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Davide Faconti <[email protected]>
  • Loading branch information
Aglargil and facontidavide authored Sep 6, 2024
1 parent 33b4d47 commit 26fc677
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tree_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ NodeStatus TreeNode::executeTick()
using namespace std::chrono;

auto t1 = steady_clock::now();
std::shared_ptr<void> timer(nullptr, [&](...) {
// trick to prevent the compile from reordering the order of execution. See #861
// This makes sure that the code is executed at the end of this scope
std::shared_ptr<void> execute_later(nullptr, [&](...) {
auto t2 = steady_clock::now();
if(monitor_tick)
{
Expand Down

0 comments on commit 26fc677

Please sign in to comment.