29 messages in org.openoffice.fr.progRe: [prog] Chronomètre
FromSent OnAttachments
Michel GrentzingerOct 9, 2007 7:53 am 
Laurent GodardOct 9, 2007 8:25 am 
Bernard MarcellyOct 9, 2007 10:02 am 
Laurent GodardOct 9, 2007 10:11 am 
Michel GrentzingerOct 9, 2007 10:58 am 
Anthony BenoistOct 9, 2007 4:15 pm 
Serge LE LOUARNEOct 10, 2007 12:43 am 
Anthony BenoistOct 10, 2007 1:06 am 
Serge LE LOUARNEOct 10, 2007 1:18 am 
Bernard MarcellyOct 10, 2007 6:03 am 
Anthony BenoistOct 10, 2007 6:28 am 
Michel GrentzingerOct 10, 2007 11:38 am 
Anthony BenoistOct 10, 2007 12:47 pm 
Laurent GodardOct 10, 2007 1:30 pm 
Anthony BenoistOct 10, 2007 3:07 pm 
Bernard MarcellyOct 11, 2007 5:17 am 
Michel GrentzingerOct 11, 2007 5:40 am 
Bernard MarcellyOct 11, 2007 6:02 am 
Francois GattoOct 11, 2007 10:22 am 
Anthony BenoistOct 11, 2007 10:26 am 
Anthony BenoistOct 11, 2007 10:37 am 
Michel GrentzingerOct 11, 2007 11:01 am 
Bernard MarcellyOct 11, 2007 11:37 am 
Hervé GracOct 11, 2007 11:54 am 
Michel GrentzingerOct 11, 2007 1:26 pm 
christianwtdOct 13, 2007 8:11 am 
Bernard MarcellyOct 13, 2007 12:49 pm 
Bernard MarcellyOct 13, 2007 1:04 pm 
christianwtdOct 14, 2007 1:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] ChronomètreActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Oct 13, 2007 1:04:00 pm
List:org.openoffice.fr.prog

Message de christianwtd date 2007-10-13 17:12 :

A propos de GetSystemTicks() Sur un PC elle renvoie un nombre de millisecondes. Mais l'horloge matérielle utilisée pour cela a une période de 16ms environ, et la valeur obtenue a donc cette imprécision.

J'ai cru comprendre que le nombre de cycles varie suivant les systèmes d'exploitation et/ou les machines, d'où l'idée de calibrer la bécane avec un bout de code avant de lancer le chrono. Bonne ou mauvaise idée ?

C'est ce qu'on peut déduire de l'aide en ligne. Si la macro peut fonctionner sur des matériels autres que IBM-PC, calibrer est une bonne précaution. C'est ce que je fais dans Xray, module _Main, vers la ligne 118, où je calibre une tempo de 300ms (en me basant sur un délai de 100ms pour ne pas retarder l'affichage de Xray).

Bonne soirée Bernard