FUNCTIONS CORE

MilliSeconds()

Return the current UTC time as a Julian timestamp in milliseconds

Syntax

Signature
MilliSeconds( ) --> nMilliSeconds

Example

MilliSeconds.prg
PROCEDURE Main()

   LOCAL nStart := MilliSeconds()

   Check( 'ValType( nStart )             ', ValType( nStart ), "N" )
   Check( 'nStart > 0                    ', nStart > 0, .T. )
   Check( 'MilliSec( 50 )                ', MilliSec( 50 ), "" )
   Check( 'MilliSeconds() - nStart >= 50 ', MilliSeconds() - nStart >= 50, .T. )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

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

RETURN

Output

ValType( nStart )             OK
nStart > 0                    OK
MilliSec( 50 )                OK
MilliSeconds() - nStart >= 50 OK