Skip to content

Instantly share code, notes, and snippets.

@alxcancado
Forked from unitycoder/Stopwatch.cs
Last active August 29, 2015 14:25
Show Gist options
  • Save alxcancado/6c1295d2bfd9ad565f3f to your computer and use it in GitHub Desktop.
Save alxcancado/6c1295d2bfd9ad565f3f to your computer and use it in GitHub Desktop.
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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment