Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Strange timestamp value in Console



I’ve noticed strange behaviour. I’m using v. The problem is with Time Column. Usually log file entries are sorted by time. But when I display my *.sil file, it contains time shift to past.

It looks like this:

Do you know what might be the reason?

best regards
Piotr Rezmer


Hi Piotr,

as you do not seem to use the high resolution timestamps (which can theoretically produce time shifts, although not to this extent), I’m pretty sure this is caused by time synchronization on the machine that produced the log.

If you are not using high resolution timestamps, SmartInspect just calls a function to get the local time (Now() in case of the SmartInspect Delphi library) and writes/sends that directly to the log file or Console.

If the machine loses a few minutes per day (a common issue with computer clocks) and the machine is set to synchronize its time with an outside server (I believe this is automatically the case for Windows machines that are members of an Active Directory), this might explain the time shifts.