Does anybody know of a good way for getting system time?
i've tried timeGetTime but maybe I didn't do it right. I put the below code into the program but the numbers it outputted came out bizaar.
static float lastTime = 0.0f;
static float frameTime = 0.0f;
float currentTime = timeGetTime();
FrameInterval = currentTime - frameTime;
frameTime = currentTime;
This code is actually for an OpenGL program i'm 'trying' to make which is based on Time Based Movement. I read some tutorials and the 'timeGetTime' function was the one they recommended. I posted this in this Board instead of the "Game Programming Board" because I figured it had more to do with the whole of C++.