FreeBSD/contrib/pnpinfo/pnpinfo.c
/*
 * DELAY does accurate delaying in user-space.
 * This function busy-waits.
 */
DELAY does accurate delaying in user-space.
This function busy-waits.
DELAY does accurate delaying in user - space . This function busy - waits .
void
DELAY (int i)
{
    struct timeval t;
    long start, stop;
    i *= 4;
    gettimeofday (&t, NULL);
    start = t.tv_sec * 1000000 + t.tv_usec;
    do {
	gettimeofday (&t, NULL);
	stop = t.tv_sec * 1000000 + t.tv_usec;
    } while (start + i > stop);
}
void DELAY ( int i ) { struct timeval t ; long start , stop ; i *= 4 ; gettimeofday ( & t , NULL ) ; start = t . tv_sec * 1000000 + t . tv_usec ; do { gettimeofday ( & t , NULL ) ; stop = t . tv_sec * 1000000 + t . tv_usec ; } while ( start + i > stop ) ; }
DELAY does accurate delaying in user-space.
DELAY does accurate delaying in user - space .