そこでGetNowCount関数を使おうと決めプログラムを組みました。
int stime,etime,cnt;//現在の経過時間を入れる変数、ゲーム終了時の経過時間を入れる変数、ゲーム終了のカウント変数
int col;
col = GetColor(255,255,255);
void game(){
stime = GetNowCount() ;
~~中略~~
if(cnt==10){ //ゲームが終了したら
ClearDrawScreen();
etime=GetNowCount() - stime;
DrawFormatString( 0, 0, col, "%d", etime ) ;
}
}
原因がいまいち分かりません。良かったらご教授お願いします。