Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WTF is the significance of {^1906-03-09 22:56:52}? :-)
Message
 
 
À
11/11/2003 19:48:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00848551
Message ID:
00848974
Vues:
22
Stefan,

I see what you are doing now.

Maybe you can simplify things if you haven't already got everything working.

use datetime alone to measure your elapsed time. Use seconds() to control your much finer subsecond needs. If you use are subtracting seconds() values to determine if it's time to do something, you only have to boundary condition the one instant that the value goes negative, midnight rollover, if the delta is negative just add 86400 to it and it'll put it into the positive value domain. You could wrap all this behavior up in a class that handled the details.

>SECONDS() is perfect for the update interval job but without the help of DATETIME() there is a hard limit of 24 hours with regard to measuring elapsed process time (for benchmarking). Of course, mixing in DATETIME() makes the code more complex.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform