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 b4ab571 commit 5c18c87Copy full SHA for 5c18c87
src/cddp_core/CDDPProblem.cpp
@@ -220,10 +220,10 @@ std::cout << "Cost " << J_ << std::endl;
220
auto end_time = std::chrono::high_resolution_clock::now();
221
222
// Calculate the elapsed time
223
- auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start_time);
+ auto duration = std::chrono::duration_cast<std::chrono::microseconds>(end_time - start_time);
224
225
// Print the elapsed time
226
-std::cout << "Solver time: " << duration.count() << " ms" << std::endl;
+std::cout << "Solver time: " << duration.count() << " micro sec" << std::endl;
227
228
// 6. Return Optimal Control Sequence
229
// place holder
0 commit comments