Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active February 12, 2023 12:49
Show Gist options
  • Select an option

  • Save unitycoder/c609a99fc3f14b3553ed to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/c609a99fc3f14b3553ed to your computer and use it in GitHub Desktop.

Revisions

  1. unitycoder revised this gist Aug 7, 2018. No changes.
  2. unitycoder renamed this gist Dec 15, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. unitycoder created this gist Mar 27, 2015.
    9 changes: 9 additions & 0 deletions gistfile1.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    var stopwatch = new System.Diagnostics.Stopwatch();
    stopwatch.Start();

    // your function here..

    stopwatch.Stop();
    //Debug.Log("Timer: " + stopwatch.Elapsed);
    Debug.Log("Timer: " + stopwatch.ElapsedMilliseconds);
    stopwatch.Reset();