question

Osama A6 avatar image
0 Likes"
Osama A6 asked Ryan Clark commented

current simulation time

How to call current simulation time within flexsim script? I don't want to call it from the display.

time() seemed to call accumulated time.

FlexSim 21.2.4
time
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Osama A6, was one of Joerg Vogel's or Jason Lightfoot's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Ben Wilson commented
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Osama A6 avatar image Osama A6 commented ·
I want to measure the time spend on a custom object.
0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ Osama A6 commented ·

Call time() onEntry and save the value to a label on the item.

Call time() again onExit. Subtract the entry time you saved on the label. Now you have the total time in the object.

2 Likes 2 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Osama A6 commented ·

The time an item spends in an object? I don't see how anyone could get that from your question.


0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.