Results 1 to 6 of 6

Thread: What API call gets the system time?

  1. #1

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136

    What API call gets the system time?

    ^^^^^^^^^^^^^^^

    Which one does?
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  2. #2
    The API text viewer got this, but I find it strange that it is in the winmm.dll library:

    Code:
    Declare Function timeGetTime Lib "winmm.dll" Alias "timeGetTime" () As Long

  3. #3

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136
    Will that work if I include windows.h?
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    how about GetSystemTime()?

    from MSDN...

    GetSystemTime
    The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).

    VOID GetSystemTime(
    LPSYSTEMTIME lpSystemTime // address of system time structure
    );

    Parameters
    lpSystemTime
    Pointer to a SYSTEMTIME structure to receive the current system date and time.
    Return Values
    This function does not return a value.

    QuickInfo
    Windows NT: Requires version 3.1 or later.
    Windows: Requires Windows 95 or later.
    Windows CE: Requires version 1.0 or later.
    Header: Declared in winbase.h.
    Import Library: Use kernel32.lib.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136
    Thnx blade!
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Just as a FYI, timeGetTime is in the MM library because it's the high-resolution timer used for multimedia programs
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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