Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query Time
Message
De
21/04/1999 13:39:43
 
 
À
21/04/1999 13:24:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00210595
Message ID:
00210642
Vues:
24
>>>Is it possible to access and store the actual query time from a VFP SQL query?
>>>
>>Sure,
>>
>>LOCAL lnSeconds, lcCursor
>>
>>lnSeconds = SECONDS()
>>
>>SELECT * ;
>>   FROM myTable ;
>>   WHERE RECNO() < RECCOUNT ;
>>INTO CURSOR ltCursor
>>
>>lnSeconds = SECONDS() - lnSeconds
>>
>>? lnSeconds
>>
>>RETURN
>>
>>
>>There's probably something fancier, but this should work to withing 1/10000 or a second or so.
>>
>>regards,
>
>Yes, this is the method I will probably wind up using, but this does not return what VFP thinks it took VFP to run the query.
>
Yeah! But it uses National Bureau of Standards time, which seems to be quite different from VFP time.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform