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 33b4d47 commit 26fc677Copy full SHA for 26fc677
src/tree_node.cpp
@@ -108,7 +108,9 @@ NodeStatus TreeNode::executeTick()
108
using namespace std::chrono;
109
110
auto t1 = steady_clock::now();
111
- std::shared_ptr<void> timer(nullptr, [&](...) {
+ // trick to prevent the compile from reordering the order of execution. See #861
112
+ // This makes sure that the code is executed at the end of this scope
113
+ std::shared_ptr<void> execute_later(nullptr, [&](...) {
114
auto t2 = steady_clock::now();
115
if(monitor_tick)
116
{
0 commit comments