ElapsedStr Function

Action

Returns the time that has elapsed since the currently executing script began running.

Syntax

sTime =  ElapsedStr ( )
Return Description
sTime The elapsed time. STRING.

Notes

  • You can use this function to measure performance.
  • The elapsed time for the following is logged automatically in the results file:
    • Each test case in the currently executing script.
    • The entire currently executing script.
    • Each script in a suite.

Example

[-] main () 
	[ ] STRING sElapsedTime 
	[ ] // get the elapsed time 
	[ ] sElapsedTime = ElapsedStr () 
	[ ] Print ("Script has run for {sElapsedTime} (h:mm:ss)")