Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accuracy of seconds()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01292518
Message ID:
01292546
Vues:
20
>>No. Under NT 4.0 or later a resolution is 10 milliseconds. IIRC, it can be changed to 1 millisecond with some WIn API call.
>
>So why does it return a value with three decimal places?

The value is in milliseconds. An accuarcy of that value depends on Windows timer resolution. See http://technet.microsoft.com/en-us/sysinternals/bb897569.aspx for details.
DECLARE Long NtQueryTimerResolution IN NTDLL.DLL ;
			Long @ MinResolution, Long @ MaxResolution, Long @ ActuaslResolution
? NtQueryTimerResolution(@lnMinResolution, @lnMaxResolution, @lnActuaslResolution)
? lnMinResolution/10, lnMaxResolution/10, lnActuaslResolution/10
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform