Egoist Creative Commons License 2002.05.13 0 0 65
ANSI C -beli megvalositast tudok adni. Ennek a pontossaga fugg a CLOCKS_PER_SEC erteketol, ami nalam 1000000, nalad lehet ettol eltero. (hacsak nem irtad el, akkor mikrosecundomot akarsz, azaz 1/1000000 secundumot)

void usdelay(int msec) {
clock_t a;
int t;
t = CLOCKS_PER_SEC*1.0/1000000.0*msec;
a = clock();
while( clock() - a < t );
}

Udv: Ego

Előzmény: rayn (64)