Add time taken
This commit is contained in:
parent
3877c87094
commit
60b4e44244
@ -42,8 +42,14 @@ Logger logger = new(LogLevel.Information, consoleOut: Console.Out);
|
|||||||
|
|
||||||
if (!arguments.ContainsKey(benchmarkArg))
|
if (!arguments.ContainsKey(benchmarkArg))
|
||||||
{
|
{
|
||||||
|
DateTime start = DateTime.Now;
|
||||||
Route r = new Astar().FindPath(startLat, startLon, endLat, endLon, regionSize, true, PathMeasure.Time, 300, importPathVal[0], logger);
|
Route r = new Astar().FindPath(startLat, startLon, endLat, endLon, regionSize, true, PathMeasure.Time, 300, importPathVal[0], logger);
|
||||||
Renderer.Render(r, 20000, exportRenderPath[0]);
|
DateTime end = DateTime.Now;
|
||||||
|
logger.LogInformation($"Found path in {end - start:hh\\:mm\\:ss\\.fff}");
|
||||||
|
Renderer.Render(r, 25000, exportRenderPath[0]);
|
||||||
|
DateTime rendered = DateTime.Now;
|
||||||
|
logger.LogInformation($"Rendered in {rendered - end:hh\\:mm\\:ss\\.fff}");
|
||||||
|
logger.LogInformation($"Total {rendered - start:hh\\:mm\\:ss\\.fff}");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Benchmark.Run(startLat, startLon, endLat, endLon, regionSize, importPathVal[0], Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Benchmark"), logger);
|
Benchmark.Run(startLat, startLon, endLat, endLon, regionSize, importPathVal[0], Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Benchmark"), logger);
|
||||||
|
Loading…
Reference in New Issue
Block a user