4D v14.3

Milliseconds

Home

 
4D v14.3
Milliseconds

Milliseconds 


 

Milliseconds -> Function result 
Parameter Type   Description
Function result  Longint in Number of milliseconds elasped since the machine was started

Milliseconds returns the number of milliseconds (1000th of a second) elapsed since the machine was started.

Example  

The following code displays the “Chronometer” window for one minute:

 Open window(100;100;300;200;0;"Chronometer")
 $vhTimeStart:=Current time
 $vlTicksStart:=Tickcount
 $vrMillisecondsStart:=Milliseconds
 Repeat
    GOTO XY(2;1)
    MESSAGE("Time...........:"+String(Current time-$vhTimeStart))
    GOTO XY(2;3)
    MESSAGE("Ticks..........:"+String(Tickcount-$vlTicksStart))
    GOTO XY(2;5)
    MESSAGE("Milliseconds...:"+String(Milliseconds-$vrMillisecondsStart))
 Until((Current time-$vhTimeStart)>=†00:01:00†)
 CLOSE WINDOW

 
PROPERTIES 

Product: 4D
Theme: Date and Time
Number: 459

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

Current time
Tickcount

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)