Time(T) Method (Func(T))

Glimpse API

IExecutionTimer Time T  Method (Func T ) Glimpse API Documentation
Times the specified function. This will start and stop the timer either side of the function that is executed.

Namespace: Glimpse.Core.Extensibility
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

TimerResult<T> Time<T>(
	Func<T> function
)
TimerResult<T> Time<T>(
	Func<T> function
)

Parameters

function
Type: OnlineSystem Func T 
The function that should be executed.
Type Parameters

T
Type of result that is expected

Return Value

Timing info that is collected as a result of the execution.
See Also