From 3d1eafaa809e61be555680d0ec1cbf12268441a1 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Thu, 11 Oct 2018 17:50:49 +0200 Subject: [PATCH] Update tsp.cc vrp.cc --- examples/cpp/tsp.cc | 3 +++ examples/cpp/vrp.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/examples/cpp/tsp.cc b/examples/cpp/tsp.cc index 00ea058b59..12589f23d5 100644 --- a/examples/cpp/tsp.cc +++ b/examples/cpp/tsp.cc @@ -106,6 +106,9 @@ namespace operations_research { } LOG(INFO) << route.str() << routing.IndexToNode(index).value(); LOG(INFO) << "Distance of the route: " << distance << "m"; + LOG(INFO) << ""; + LOG(INFO) << "Advanced usage:"; + LOG(INFO) << "Problem solved in " << routing.solver()->wall_time() << "ms"; } void Solve() { diff --git a/examples/cpp/vrp.cc b/examples/cpp/vrp.cc index a266231ab0..c69ed356e5 100644 --- a/examples/cpp/vrp.cc +++ b/examples/cpp/vrp.cc @@ -125,6 +125,9 @@ namespace operations_research { LOG(INFO) << route.str() << routing.IndexToNode(index).value(); LOG(INFO) << "Distance of the route: " << distance << "m"; } + LOG(INFO) << ""; + LOG(INFO) << "Advanced usage:"; + LOG(INFO) << "Problem solved in " << routing.solver()->wall_time() << "ms"; } void Solve() {