Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improve performance
Message
 
À
30/11/2007 14:26:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01271950
Message ID:
01272509
Vues:
28
Hi Dragan,

>And the precision of the seconds() function has gone from 1ms to 10ms somewhere between NT4 and W2K or so.

On NT you can change the resolution for SECONDS() using the timeBeginPeriod API function:
Declare long timeBeginPeriod in WinMM.dll long
timeBeginPeriod(1)
http://www.foxpert.com/KnowlBits_200705_5.htm

>Still, if coverage logging can have microseconds, this was surely feasible, probably by use of different API functions.

That's a Performance Counter object. You can use the QueryPerformanceCounter API functions. One problem with that is its performance, though. Although it returns timing values with the highest possible precision, the API call takes longer than other call for querying elapsed time.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform