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:
00916471
Vues:
9
Hi Nick,

this is a solution for the problem,
but put it into a application is not simple.
oSleep=CREATEOBJECT("mySleep")

t1=SECONDS()
FOR k=1 TO 10000
	oSleep.Interval = 1 && 1 ms wait
	READ EVENTS
NEXT
? SECONDS()-t1


DEFINE CLASS mySleep AS Timer

	PROCEDURE Timer
		this.interval = 0
		CLEAR EVENTS
	ENDPROC

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

Click here to load this message in the networking platform