private void Start() { grid.Generate(); var sw = new System.Diagnostics.Stopwatch(); sw.Start(); path = algorithm.AStarSearch(); // Receive the constructed path. sw.Stop(); Debug.Log(sw.ElapsedTicks); }