Header Text Coming Soon! You can Contact Us below anytime!

[This is preliminary documentation and is subject to change.]

Calculates the time it takes to run a given Action with one parameter.

Namespace:  SpiderMaster
Assembly:  SpiderMaster.Net (in SpiderMaster.Net.dll) Version: 0.0.6.0 (0.0.6.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static TimeSpan Time<T>(
	this Action<T> value,
	T obj
)
<ExtensionAttribute> _
Public Shared Function Time(Of T) ( _
	value As Action(Of T), _
	obj As T _
) As TimeSpan
[ExtensionAttribute]
public:
generic<typename T>
static TimeSpan Time(
	Action<T>^ value, 
	T obj
)

Parameters

value
Action<(Of <(<'T>)>)>
The Action to time.
obj
T
The parameter for value.

Type Parameters

T
The type of the parameter to value.

Return Value

A TimeSpan object that contains the time it took to run value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if value is null.

See Also