Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query Time
Message
From
21/04/1999 13:39:43
 
 
To
21/04/1999 13:24:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00210595
Message ID:
00210642
Views:
25
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform