Skip to content

Pact Core Helpers StopwatchHelper Time(System Action)

welshronaldo edited this page May 30, 2022 · 5 revisions

StopwatchHelper.Time(Action) Method

Helper to wrap an action in a stopwatch in order to time it

public static System.TimeSpan Time(System.Action action);

Parameters

action System.Action
The action to be timed

Returns

System.TimeSpan
How long the action took to execute

Clone this wiki locally