Christophe,
On long running systems, @TICKS can become negative. I seem to recall that it takes somewhere around 37 or 38 days to roll over. Not sure it this was fixed in current versions of Kix, but I tend to avoid it for that reason. I do use @TICKS for specific timing checks, usually in a function that detects negative values and adjusts the calculation accordingly.
This example is a timestamp of when the event occurred, so @MSECS is the correct usage - the number of ms in the current second. The Right(...) is simply to pad the value with zeros so there is no confusion when scanning the log. It's always displayed in thousands of a second. If I used @TICKS along with @DATE and @TIME, the time that the event occurred would be inaccurate.
Glenn
_________________________
Actually I
am a Rocket Scientist!