Skip to content

Commit

Permalink
help my sanity a lil please
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Jul 27, 2024
1 parent b471655 commit d15ba2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GWToolboxdll/Windows/Pathfinding/Pathing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,9 @@ namespace Pathing {
}
}

#ifdef _DEBUG
volatile clock_t start_timestamp = clock();
#endif

//@Cleanup: Maybe I'm not using milepath for its intended purpose, but this function will ALWAYS add more points to the graph!!
if (new_start) {
Expand Down Expand Up @@ -1106,8 +1108,10 @@ namespace Pathing {
m_mp->m_visGraph[start.id].clear();
}

#ifdef _DEBUG
volatile clock_t stop_timestamp = clock();
Log::Flash("Find path: %d ms\n", stop_timestamp - start_timestamp);
Log::Log("Find path: %d ms\n", stop_timestamp - start_timestamp);
#endif
m_path.finalize();
return m_path.ready() ? Error::OK : Error::FailedToFinializePath;
}
Expand Down

0 comments on commit d15ba2c

Please sign in to comment.