07/06/06 23:10:31
>>25
void mysleep(long msec){
static long mcount = -1;
long i, j;
if(mcount < 0){
time_t check_time;
check_time = time(NULL);
while(check_time == time(NULL));
check_time = time(NULL);
for(mcount = 0; check_time == time(NULL); mcount++);
mcount /= 1000;
}
for(i = 0; i < msec; i++){
for(j = 0; j < mcount; j++){
time(NULL);
}
}
}