By
RoverTurbo How to display the time and date in Direct3D. Code:
#include <time.h>
CHAR TimeAndDate[MAX_PATH];
time_t TimeValue;
HRESULT WINAPI EndScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
{
TimeValue = time(NULL);
strftime(TimeAndDate, MAX_PATH, "[ %a - %b %d - %i:%m %p ]", localtime(&TimeValue));
return EndScene_Pointer(Device_Interface);
} Printing the TimeAndDate variable will give you the time and date in the format of [ Mon - Nov 07 - 01:05 PM ]