Unity System Diagnostic Stopwatch
System.Diagnostics.Stopwatch s = new System.Diagnostics.Stopwatch(); s.Start(); //Do something requiring measurment s.Stop(); print((float)s.ElapsedMilliseconds / 1000f);