Fix timings

This commit is contained in:
Victor Shcherb 2020-07-13 00:09:10 +02:00
parent d592736252
commit f4d0145d59

View file

@ -671,7 +671,7 @@ public class RoutePlannerFrontEnd {
res = searchRouteImpl(ctx, points, routeDirection); res = searchRouteImpl(ctx, points, routeDirection);
} }
if (ctx.calculationProgress != null) { if (ctx.calculationProgress != null) {
ctx.calculationProgress.timeToCalculate = System.nanoTime() - timeToCalculate; ctx.calculationProgress.timeToCalculate += (System.nanoTime() - timeToCalculate);
} }
BinaryRoutePlanner.printDebugMemoryInformation(ctx); BinaryRoutePlanner.printDebugMemoryInformation(ctx);
if (res != null) { if (res != null) {
@ -870,7 +870,7 @@ public class RoutePlannerFrontEnd {
current = pr; current = pr;
} }
} }
ctx.routingTime = ctx.calculationProgress.routingCalculatedTime; ctx.routingTime += ctx.calculationProgress.routingCalculatedTime;
return new RouteResultPreparation().prepareResult(ctx, result, recalculationEnd != null); return new RouteResultPreparation().prepareResult(ctx, result, recalculationEnd != null);
} }