LibreOffice 24.8 Help
āĻŽāĻ§ā§āĻ¯āĻ°āĻžāĻ¤ā§āĻ° āĻĒāĻ° āĻĨā§āĻā§ āĻ āĻ¤āĻŋāĻā§āĻ°āĻžāĻ¨ā§āĻ¤ āĻ¸āĻŽā§ā§āĻ° āĻŽā§āĻ āĻ¸ā§āĻā§āĻ¨ā§āĻĄā§āĻ° āĻĒāĻ°āĻŋāĻŽāĻžāĻŖ āĻāĻ˛ā§āĻ˛ā§āĻāĻāĻžāĻ°ā§ āĻŽāĻžāĻ¨ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻāĻ°ā§ āĻĨāĻžāĻā§āĨ¤
āĻ¸āĻŽā§ āĻĢāĻžāĻāĻļāĻ¨ āĻāĻ˛ āĻāĻ°āĻžāĻ° āĻāĻ¨ā§āĻ¯ āĻāĻĒāĻ¨āĻžāĻā§ āĻ āĻŦāĻļā§āĻ¯āĻ āĻĒā§āĻ°āĻĨāĻŽā§ āĻāĻāĻāĻŋ āĻā§āĻ°āĻŋā§ā§āĻŦāĻ˛ āĻĄāĻŋāĻā§āĻ˛ā§ā§āĻžāĻ° āĻāĻ°āĻ¤ā§ āĻšāĻŦā§ āĻāĻŦāĻ āĻāĻāĻŋāĻ¤ā§ āĻāĻāĻāĻŋ "Long" āĻĄāĻžāĻāĻž āĻ§āĻ°āĻ¨ āĻĒā§āĻ°ā§ā§āĻ āĻāĻ°āĻ¤ā§ āĻšāĻŦā§, āĻ āĻ¨ā§āĻ¯āĻĨāĻžā§ āĻ¤āĻžāĻ°āĻŋāĻ āĻŽāĻžāĻ¨ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻāĻ°ā§ āĻĨāĻžāĻā§āĨ¤
Timer
āĻ¤āĻžāĻ°āĻŋāĻ
Sub ExampleTimer
Dim lSec As Long,lMin As Long,lHour As Long
lSec = Timer
MsgBox lSec, 0, "Seconds since midnight"
lMin = Int(lSec / 60)
lSec = lSec Mod 60
lHour = Int(lMin / 60)
lMin = lMin Mod 60
MsgBox Format(lHour,"00") & ":"& Format(lMin,"00") & ":" & Format(lSec,"00"), 0, "The time is"
End Sub
The Timer function measures time in seconds. To measure time in milliseconds use the Timer service available in the ScriptForge library.