FUNCTIONS CORE

MilliSec()

Define a time delay in milliseconds

Syntax

Signature
MilliSec( nMilliSeconds ) --> cNull

Arguments

nMilliSeconds

Example

MilliSec.prg
PROCEDURE Main()

   LOCAL nStart := Seconds()

   MilliSec( 200 )

   Check( 'Round( Seconds() - nStart, 2 ) >= 0.2 ', Round( Seconds() - nStart, 2 ) >= 0.2, .T. )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

Round( Seconds() - nStart, 2 ) >= 0.2 OK