mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Report timings with microsecond resolution
In case one has a small problem to solve, where completion is reached within a few milliseconds, then four decimal places are not enough to accurately represent the timings of all the separate sub-steps. Thus, we extend the reported timings to include six decimal places. Change-Id: Iaf88a94a1b8896ea7370c75b1de2f05d8671206e
This commit is contained in:
committed by
Sameer Agarwal
parent
2a956099d4
commit
d727974f30
@@ -262,15 +262,15 @@ string GradientProblemSolver::Summary::FullReport() const {
|
||||
static_cast<int>(iterations.size()));
|
||||
|
||||
StringAppendF(&report, "\nTime (in seconds):\n");
|
||||
StringAppendF(&report, "\n Cost evaluation %23.4f (%d)\n",
|
||||
StringAppendF(&report, "\n Cost evaluation %23.6f (%d)\n",
|
||||
cost_evaluation_time_in_seconds,
|
||||
num_cost_evaluations);
|
||||
StringAppendF(&report, " Gradient evaluation %23.4f (%d)\n",
|
||||
StringAppendF(&report, " Gradient evaluation %23.6f (%d)\n",
|
||||
gradient_evaluation_time_in_seconds,
|
||||
num_gradient_evaluations);
|
||||
StringAppendF(&report, " Polynomial minimization %17.4f\n",
|
||||
StringAppendF(&report, " Polynomial minimization %17.6f\n",
|
||||
line_search_polynomial_minimization_time_in_seconds);
|
||||
StringAppendF(&report, "Total %25.4f\n\n",
|
||||
StringAppendF(&report, "Total %25.6f\n\n",
|
||||
total_time_in_seconds);
|
||||
|
||||
StringAppendF(&report, "Termination: %25s (%s)\n",
|
||||
|
||||
Reference in New Issue
Block a user