#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#define TIMELOST 1000 //시간 조절.
void main()
{
int count = 0;
int before;//멈춰있는 시간
before=GetTickCount()+TIMELOST;//멈춰있는 시간
for(;;)
{
if(before <= (int)GetTickCount())
{
printf("%d\n",count++);
before=GetTickCount()+TIMELOST;
}
}
}
댓글 없음:
댓글 쓰기