Add timestamp to Log file

Trevor P.
Chandler, AZ

Nov 21, 2013
1 Post

0  |  0  

Re: Add timestamp to Log file

I am running a test where conditions are varied over time and need the log file to summarize what/when conditions were applied. To this ends, is there a way to have a timestamp automatically added throughout the ATEasy log file? Moreover, is it possible to control how frequently those conditions are output (e.g. every 0.1 second, 1 second, etc.).

DrATEasy (Ron Y.)
Mission Viejo, CA

Nov 21, 2013
358 Posts

0  |  0  

Re: Add timestamp to Log file

Check the following KB artcicle:

Also check the ATest object for StartTime/EndTime properties.

You can use an ateasy ATimer, EnableInterrupt or CretaeThread/Sleep to create a timer.

Paul T.
Maennedorf, Zurich

Nov 21, 2013
64 Posts

0  |  0  

Re: Add timestamp to Log file

Hi Trevor! You could use the STime() function to return the current time whenever you need it (you also have the SDate() function for the current date). If you want to control things at different time intervals, you could use the Tick() function:

This example waits for 0.1 second to elapse until a specific task is performed:

dwTime = Tick()

while Tick() - dwTime < 100


I hope my post is helpful for you. If not, excuse me and please wait until an official helper will assist you.

Best regards,


Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]