Skip to content

Instantly share code, notes, and snippets.

@JonRurka
Created April 16, 2015 05:37
Show Gist options
  • Save JonRurka/b4ec21ee82d09db20491 to your computer and use it in GitHub Desktop.
Save JonRurka/b4ec21ee82d09db20491 to your computer and use it in GitHub Desktop.
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
Chunk[] chunkTemp = GameObject.FindObjectsOfType<Chunk>();
watch.Stop();
Debug.Log("time: " + watch.Elapsed.ToString() + ", chunks found: " + chunkTemp.Length);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment