4D v12.4

Milliseconds

Home

 
4D v12.4
Milliseconds

 

Milliseconds 


 

Milliseconds -> Funktionsergebnis 
Parameter Typ   Beschreibung
Funktionsergebnis  Lange Ganzzahl in Anzahl Millisekunden, die seit dem Start des Rechners vergangen sind

Die Funktion Milliseconds gibt die Anzahl Millisekunden (1000stel Sekunde) seit dem Start des Rechners zurück.

Folgender Code zeigt für eine Minute das Fenster “Chronometer”:

 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

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Datum und Zeit
Nummer: 459

 
GESCHICHTE 

Erstellt: 4D v6

 
SIEHE AUCH 

Current time
Tickcount