Enable JavaScript in the browser to display LibreOfficeDev Help pages.

QJCzA‖

fQQbR‖GetSystemTicks Function

3fFGL‖Returns the number of system ticks provided by the operating system. You can use this function to optimize certain processes.

SD4Rp‖Syntax:


GetSystemTicks()

X5xFK‖Return value:

Long

SEjHR‖Error codes:

5 Invalid procedure call

FmsU2‖Example:


Sub ExampleWait
Dim lTick As Long
    lTick = GetSystemTicks()
    Wait 2000
    lTick = (GetSystemTicks() - lTick)
Xf6vW‖    MsgBox "" & lTick & " Ticks" ,0,"The pause lasted"
End Sub