#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
void main()
{
int ti=0;//흘러간 시간
int before;//멈춰있는 시간
int present;//현재 시간
before=GetTickCount()/1000;//멈춰있는 시간
for(;;)
{
present=GetTickCount()/1000;//현재시간
//printf("%d\n", time);
if(before+ti<present)
{
printf("%d\n", ti);
ti++;
}
}
}
댓글 없음:
댓글 쓰기