Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass a date to a DLL?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00065737
Message ID:
00066756
Vues:
66
>>>>Vlad
>>>
>>>All I did was to set up two FOR...ENDFOR loops, one that continually ORed the same numbers, and one that added them. By using the same literal values, and having no other code, I felt that it was the truest indicator of actual performance I could find. Any ideas on this?
>>>
>>>George
>>
>>I also did this. After that I switched the FORs. I got totally different results. So, I inserted another empty FOR before the other two FORs. Again, different results. I am a little confused and I don't know yet how to interpret these results. :(
>>
>>I noticed similar behaviors before, but in the other cases I found some explanations. Not this time.
>>
>>Vlad
>
>I've tried to simulate what you've done, and with the exception of the first test, there was little difference in the results, regardless of when the operations occurred. Using a 1000 iterations: addition consistently returned 0.003 seconds; OR was consistently either 0.004 and 0.005, with the exception of the first pass. The first pass was 0.037! I'm at a loss to explain this.
>
>George

Always do your tests long enough to have at least 100 ms. The OS is using the CPU also and, from time to time, it uses up to 5ms (no app running) on my computer.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform