|
-
Sep 2nd, 2001, 09:22 PM
#1
Thread Starter
Addicted Member
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.
-
Sep 2nd, 2001, 09:25 PM
#2
Member
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
-
Sep 2nd, 2001, 09:29 PM
#3
Thread Starter
Addicted Member
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.
-
Sep 2nd, 2001, 09:35 PM
#4
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
-
Sep 2nd, 2001, 09:45 PM
#5
Thread Starter
Addicted Member
BTW, Thanks for all your help
Member of the anti-gay cross-dressing trans-species wolves alliance.
-
Sep 3rd, 2001, 03:19 AM
#6
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|