Routine to get Elapsed time of Simulation

Dear colleagues,

is there any way of getting the elapsed simulation time inside a robot program? The goal is to count each box to be palletized and at the end, given a certain condition, get the elapsed time to generate statistical measures.

I know the existence of the Elapsed variable inside ISimulation Interface.

double Elapsed { get; }

However, I could not use it inside the robot routine.

Any clarifications on how to perform this task will be very appreciated. Thank you in advance for any attention to this matter!

André Castro.

Hy,

I also meet this issue… → Is there an solution now?

When is Elapsed got resetet?

Thx & Regards

Not sure if this is usable in robot programs, but expressions have a SimTime() function that returns the current simulation time in seconds.

https://help.visualcomponents.com/4.8/Premium/en/English/Expressions/Process_Statement_Expressions.htm?rhhlterm=simtime&rhsearch=SimTime