验证中...
Languages: C/C++
Categories: 其他
Latest update 2019-11-01 16:03
gistfile1.txt
Raw Copy
#include "stdafx.h"
#include <time.h>
#include <stdio.h>
#define INTERVAL 1000
int main(int argc, char* argv[])
{
clock_t tick=clock()+INTERVAL;
int i=1;
while(1)
{
clock_t current=clock();
if(current>tick)
{
tick=current+INTERVAL;
printf("%d ",i++ );
if(i>9)
{
i=1;
printf("\n");
}
}
}
return 0;
}

Comment list( 0 )

Sign in for post a comment

Help Search