VirtualUserScript GetTimingElapsedTime Method C# API
Gets the elapsed time of the current active timing.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.4.0.26
Syntax

public int GetTimingElapsedTime(
	VirtualUserScript script = null
)

Parameters

script (Optional)
Type: Facilita.Fc.Runtime VirtualUserScript

[Missing <param name="script"/> documentation for "M:Facilita.Fc.Runtime.VirtualUserScript.GetTimingElapsedTime(Facilita.Fc.Runtime.VirtualUserScript)"]

Return Value

The elapsed time of the timing, in milliseconds.
Remarks

Returns 0 (zero) if there is no current timing. A timing can be started using the StartTiming(String) method.
Examples

The following example demonstrates setting a progress point to indicate that a timing has lasted more than 5 seconds.
StartTiming("Timing1");

// do activity 

if (GetTimingElapsedTime() > 5000)
{
    SetProgressPoint("Activity > 5 Seconds");
}

// do more activity

EndTiming("Timing1");
See Also