retrieve testing dates in tester

 

Hello,

I need to use the number of testing days within an ea (basically test end date - test start date)

How can I get it ?

Thank you

 

The testing start date is equal to TimeCurrent() in OnInit() resp on first tick.

Testing end date you can't get upfront, unless you implement some heavy means to parse it from the tester log. But you'll know it when OnDeinit() gets called, maybe that suffices for you.

 
lippmaje #:

The testing start date is equal to TimeCurrent() in OnInit() resp on first tick.

Testing end date you can't get upfront, unless you implement some heavy means to parse it from the tester log. But you'll know it when OnDeinit() gets called, maybe that suffices for you.

Thank you and sorry for delay I must have missed your answer.

It worked fine for me : I did need it for custom optimization criterion so I grabbed test start date using TimeCurrent()  in OnInit() and test end date using  TimeCurrent() in OnTester() then calculated number of days in beetween

Best regards,

Reason: