Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INKEY() Speed
Message
De
02/01/2011 15:30:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
INKEY() Speed
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01494340
Message ID:
01494340
Vues:
170
Hi All,

Whys is INKEY("H") orders of magnitude slower than just plain INKEY() ?
CLEAR

* Sub-second ...

TSECONDS = SECONDS()
FOR I = 1 TO 100
  TA=INKEY()
NEXT
? SECONDS() - TSECONDS

* Over 6 seconds ! ...

TSECONDS = SECONDS()
FOR I = 1 TO 100
  TA=INKEY("H")
NEXT
? SECONDS() - TSECONDS
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform