Results 1 to 3 of 3

Thread: How can I get system time including milliseconds?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    2
    How can I get system time including milliseconds?

    All I can get at the moment is hh:mm:ss,
    I really need the milliseconds as well,
    eg. hh:mm:ss:milliseconds.

    Any help appreciated.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Try this:
    caption=Time & "," & Right(Int(Timer * 100), 2)

  3. #3
    New Member
    Join Date
    Mar 2000
    Posts
    3
    Use the timeGetTime function. It returns the system time in milliseconds.

    For example, in the declarations section of your project

    Public Declare Function timeGetTime Lib "winmm.dll" () As Long

    Dim lTime As Long

    then wherever you want to get the time

    lTime = timeGetTime

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width