Here is a nice perk i like in a D3D, so i dont lose track of time when i play
//includes
#include <time.h>
//globals
char cTimeAndDate[80];
time_t tValue;
//Do the rest In EndScene
HRESULT APIENTRY IDirect3DDevice9::EndScene()
{
tValue = time(NULL);
strftime(cTimeAndDate, sizeof(cTimeAndDate), "[ %a - %b %d - %i:%m %p ]", localtime(&tValue));
return Device->EndScene();
}
Here's another way you can display time using <ctime>.
Include this at the top
Do this in End Scene:
char time [5]
_strtime( time );
printf( "%s", time );
And to display it you would use your draw text function.
In a starter kit it'll most likely look like this:
m_pFont_new->DrawText(710,310,txtWhite,time);
by Roverturbo