Skip to main content
gamedev.net
🔒 Locked

timeGetTime()

Started by AWood Feb 21, 2005 at 9:27 PM 4 replies 2.4k views
Original Post
AWood
AWood
I am trying to use the timeGetTime() function for calculating the frames per second -- this is to serve as a substitue if the PerformanceCounter isn't available. The problem is, I get an error any time I try to call timeGetTime(): error C3861: 'timeGetTime': identifier not found, even with argument-dependent lookup I have included windows.h, and when I mouseover the function in VC++ .Net 2003, I can see the prototype in the caption (DWORD timeGetTime(void)). Any insight on resolving this problem, or suggestions on alternative measures would be very helpful. Thanks.
Drew_Benton
Drew_Benton
Quote:
Original post by Anonymous Poster
sorry i was in a rush so its #pragma comment(lib,"winmm.lib")


In addition, you will need to:
#include
AWood
AWood
That did it. Thank you for your quick responses.

*EDIT*
Just saw that last post. Actually, the #include is what i needed. I had tried linking the library already, and that alone did not solve the problem.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.