Syntax
SecondsSleep( nSeconds ) --> NILArguments
nSeconds
Example
PROCEDURE Main()
LOCAL nStart := Seconds()
SecondsSleep( 0.5 )
Check( 'Round( Seconds() - nStart, 2 ) >= 0.5 ', Round( Seconds() - nStart, 2 ) >= 0.5, .T. )
RETURN
STATIC PROCEDURE Check( cTitle, xResult, xExpected )
QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )
RETURNOutput
Round( Seconds() - nStart, 2 ) >= 0.5 OK