src/app/host-serial/extend-win32.c
cell us(cell nus)
{
    LARGE_INTEGER lFrequency;
    LARGE_INTEGER lEndTime;
    LARGE_INTEGER lCurTime;

    QueryPerformanceFrequency (&lFrequency);
    if (lFrequency.QuadPart) {
	QueryPerformanceCounter (&lEndTime);
	lEndTime.QuadPart += (LONGLONG) nus * lFrequency.QuadPart / 1000000;
	do {
	    QueryPerformanceCounter (&lCurTime);
	    Sleep(0);
	} while (lCurTime.QuadPart < lEndTime.QuadPart);
    }
}
// Adapted from src/win32/usleep.c in the Extended Module Player source
Adapted from src/win32/usleep.c in the Extended Module Player source
Adapted from src / win32 / usleep . c in the Extended Module Player source
cell us(cell nus)
{
    LARGE_INTEGER lFrequency;
    LARGE_INTEGER lEndTime;
    LARGE_INTEGER lCurTime;
    QueryPerformanceFrequency (&lFrequency);
    if (lFrequency.QuadPart) {
	QueryPerformanceCounter (&lEndTime);
	lEndTime.QuadPart += (LONGLONG) nus * lFrequency.QuadPart / 1000000;
	do {
	    QueryPerformanceCounter (&lCurTime);
	    Sleep(0);
	} while (lCurTime.QuadPart < lEndTime.QuadPart);
    }
}
cell us ( cell nus ) { LARGE_INTEGER lFrequency ; LARGE_INTEGER lEndTime ; LARGE_INTEGER lCurTime ; QueryPerformanceFrequency ( & lFrequency ) ; if ( lFrequency . QuadPart ) { QueryPerformanceCounter ( & lEndTime ) ; lEndTime . QuadPart += ( LONGLONG ) nus * lFrequency . QuadPart / 1000000 ; do { QueryPerformanceCounter ( & lCurTime ) ; Sleep ( 0 ) ; } while ( lCurTime . QuadPart < lEndTime . QuadPart ) ; } }
Adapted from src/win32/usleep.c in the Extended Module Player source
Adapted from src / win32 / usleep . c in the Extended Module Player source