Advertisement

timeGetTime()

Started by February 21, 2005 09:27 PM
4 comments, last by AWood 20 years ago
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.
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 <mmsystem.h>
Advertisement
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.

This topic is closed to new replies.

Advertisement