//从右往左移动
#include <stdio.h>
#include <string.h>
#include <time.h>
//睡眠x毫秒
int sleep(unsigned long x){
clock_t c1=clock(),c2;
do{
if((c2=clock())==(clock_t)-1)
return 0;
}while(1000.0*(c2-c1)/CLOCKS_PER_SEC<x);
return 1;
}
//从右往左移动
#include <stdio.h>
#include <string.h>
#include <time.h>
//睡眠x毫秒
int sleep(unsigned long x){
clock_t c1=clock(),c2;
do{
if((c2=clock())==(clock_t)-1)
return 0;
}while(1000.0*(c2-c1)/CLOCKS_PER_SEC<x);
return 1;
}