C# Class UnityContrib.UnityEngine.Measure

Provides methods for doing measurements of code execution.
Show file Open project: UnityContrib/framework

Public Methods

Method Description
DebugLogTime ( string caption, System.Action action ) : void

Measures the time the specified action takes to execute.

Time ( System.Action action ) : float

Measures the time the specified action takes to execute.

Method Details

DebugLogTime() public static method

Measures the time the specified action takes to execute.
public static DebugLogTime ( string caption, System.Action action ) : void
caption string /// The caption of the measurement. ///
action System.Action /// The action to measure. ///
return void

Time() public static method

Measures the time the specified action takes to execute.
public static Time ( System.Action action ) : float
action System.Action /// The action to measure. ///
return float