VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Format GetTickCount

Alexandre Moro  (5 Submissions)   Math/Dates   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Format the GetTickCount() API to days, hours, minutes, seconds and miliseconds.
Useful to measure time elapsed between two points.

Inputs
A long containing the tick count value, and an optional parameter to use different format types. Ex.: Msgbox FormatCount(GetTickCount(),1)

Returns
A string containing the formated output.

API Declarations
Declare Function GetTickCount Lib "Kernel32" () As Long

Rate Format GetTickCount (3(3 Vote))
Format GetTickCount.bas

Format GetTickCount Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters