Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
High Resolution Timer (down to 0.01 milliseconds)
Message
De
05/10/2013 17:59:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
High Resolution Timer (down to 0.01 milliseconds)
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01584825
Message ID:
01584825
Vues:
97
Visual FreePro will implement a higher resolution timer than is available in Visual FoxPro. This example works with Visual FoxPro and allows for a higher resolution timer than the base Timer class, down to 10ms (fires 100 times per second in low-CPU mode), and another high resolution mode which uses one core to monitor the on-board high resolution timer continuously in a separate thread, and fire the timer even up to 0.01 milliseconds (100,000 times per second on a 2.4 GHz Windows 7 test machine, it may go faster on faster machines).

There are two modes:
(1)  High resolution timer (requires one core to continuously monitor the timer
(2)  Low-CPU mode (uses Windows countdown timer facilities and almost no CPU power)
See attached for a screenshot.

Download the source code here:
http://www.libsf.org/software/misc/hrt__high_resolution_timer.zip
Répondre
Fil
Voir

Click here to load this message in the networking platform