それってこんな感じでしょうか。
#include"DxLib.h"
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
int begin,count=0;
if(DxLib_Init()==-1)return -1;
SetDrawScreen(DX_SCREEN_BACK);
ScreenFlip();
begin=GetNowCount();
while(ProcessMessage()!=-1){
count++;
ScreenFilp();
fps=(GetNowCount()-begin)/count;
ClearDrawScreen();
DrawFormatString(0,0,GetColor(255,255,255),"%dmsec,fps);
}
DxLib_End();
return 0;
}
このプログラムは、×による強制終了しかありません。しかし、必要最低限の記述なのでそんなに負担は、
大きくないはずです。