Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store Seconds in the log file?
Message
From
09/01/2023 07:19:37
 
 
To
09/01/2023 07:02:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01685718
Message ID:
01685743
Views:
30
>>
>>12/21/2021 10:03:03 PM
>>
>>Some other LOG files I set the SECONDS off (using SET SECONDS OFF). So the log file would have an entry starting with
>>
>>12/21/2021 10:03 PM
>>
>>I was just wondering, what do you think should be a good practice? At least, in your app, do you remove seconds?
>
>Absolutely yes on seconds. I've been doing a lot of debugging lately that involves looking at multiple logs and having seconds means I can sync them; that is, I can see what different logs are telling me about what happened at the same time.

I am almost always arguing for saving more data in case of ex post facto need to check.
Dmitry is working off the datetime() seconds.
But for use you mention I'd use at least seconds() with millsecond resolution -
I often prefer to use QueryPerformanceCounter/-Frequency to have higher resolution.

By all means still save Datetime() seconds to use as a sanity check if calculating off the higher resolution timers by head - and another benefit of logging into dbf, as such calculations can be delegated to the DB engine ;-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform