Timer Function

āĻŽāĻ§ā§āĻ¯āĻ°āĻžāĻ¤ā§‡āĻ° āĻĒāĻ° āĻĨā§‡āĻ•ā§‡ āĻ…āĻ¤āĻŋāĻ•ā§āĻ°āĻžāĻ¨ā§āĻ¤ āĻ¸āĻŽā§Ÿā§‡āĻ° āĻŽā§‹āĻŸ āĻ¸ā§‡āĻ•ā§‡āĻ¨ā§āĻĄā§‡āĻ° āĻĒāĻ°āĻŋāĻŽāĻžāĻŖ āĻ‰āĻ˛ā§āĻ˛ā§‡āĻ–āĻ•āĻžāĻ°ā§€ āĻŽāĻžāĻ¨ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻ•āĻ°ā§‡ āĻĨāĻžāĻ•ā§‡āĨ¤

āĻ¨ā§‹āĻŸ āĻ†āĻ‡āĻ•āĻ¨

āĻ¸āĻŽā§Ÿ āĻĢāĻžāĻ‚āĻļāĻ¨ āĻ•āĻ˛ āĻ•āĻ°āĻžāĻ° āĻœāĻ¨ā§āĻ¯ āĻ†āĻĒāĻ¨āĻžāĻ•ā§‡ āĻ…āĻŦāĻļā§āĻ¯āĻ‡ āĻĒā§āĻ°āĻĨāĻŽā§‡ āĻāĻ•āĻŸāĻŋ āĻ­ā§‡āĻ°āĻŋā§Ÿā§‡āĻŦāĻ˛ āĻĄāĻŋāĻ•ā§āĻ˛ā§‡ā§ŸāĻžāĻ° āĻ•āĻ°āĻ¤ā§‡ āĻšāĻŦā§‡ āĻāĻŦāĻ‚ āĻāĻŸāĻŋāĻ¤ā§‡ āĻāĻ•āĻŸāĻŋ "Long" āĻĄāĻžāĻŸāĻž āĻ§āĻ°āĻ¨ āĻĒā§āĻ°ā§Ÿā§‹āĻ— āĻ•āĻ°āĻ¤ā§‡ āĻšāĻŦā§‡, āĻ…āĻ¨ā§āĻ¯āĻĨāĻžā§Ÿ āĻ¤āĻžāĻ°āĻŋāĻ– āĻŽāĻžāĻ¨ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻ•āĻ°ā§‡ āĻĨāĻžāĻ•ā§‡āĨ¤


Syntax:


  Timer

Return value:

āĻ¤āĻžāĻ°āĻŋāĻ–

Example:


  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
note

The Timer function measures time in seconds. To measure time in milliseconds use the Timer service available in the ScriptForge library.


Please support us!