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:
00916395
Vues:
8
> Something like this for SECONDS()
> lnstart = SECONDS()
> DO WHILE SECONDS() < lnstart + .005
> ENDDO
> This would produce a 5 ms delay.

Hi George,

Unfortunately this causes 100% cpu usage, same as using sleep(0). Also it doesn't actually return in 5ms more like 16ms.

Nick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform