Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sleep(1) too slow
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00916333
Message ID:
00916475
Vues:
8
>I am trying to delay a loop by a small amount of time.
>
>If I use sleep(1) it delays for a minimum of 16ms, much too slow. If instead I use Sleep(0) the loop happens quick enough but also have 100% cpu usage.
>
>Anyone know of another way to place a delay in a loop, something inbetween sleep(0) and sleep(1).
>

You could try:
DECLARE INTEGER SleepEx IN WIN32API ;
        INTEGER, ;
        INTEGER

SleepEx(1, 0)
* Or
SleepEx(0, 0)
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform