barrettotte
10/13/2018 - 5:33 PM

Unity System Diagnostic Stopwatch

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);