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.5.7.98
Syntax

public int GetTimingElapsedTime(
	VirtualUserScript script = null
)

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