Time(T) Method (Func(T))

Glimpse API

ExecutionTimer 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

public TimerResult<T> Time<T>(
	Func<T> function
)
public 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.

Implements

IExecutionTimer Time T (Func T )
See Also