Skip to content

Commit

Permalink
path: Reset timer when path is recalculated.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed May 7, 2024
1 parent 5ad2a6a commit e7b4c9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libopenage/pathfinding/demo/demo_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ void path_demo_1(const util::Path &path) {
target,
};

timer.reset();
timer.start();
path_result = pathfinder->get_path(new_path_request);
timer.stop();
Expand All @@ -143,6 +144,7 @@ void path_demo_1(const util::Path &path) {
target,
};

timer.reset();
timer.start();
path_result = pathfinder->get_path(new_path_request);
timer.stop();
Expand Down

0 comments on commit e7b4c9c

Please sign in to comment.