ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 09-24-2010
Yongbin Kim Yongbin Kim is offline
Flexsim User
 
Join Date: Aug 2010
Posts: 2
Downloads: 0
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Yongbin Kim is on a distinguished road
Default Measuring run time

Hi,

I am pretty new to Flexsim. I am currently writing a User Events script and would like to measure the actual run time of a certain process in the User Events script. For example, I would like to know how long it takes to load an excel file and to import the data into the global table.

Is there any Flexscript command to measure the run time? I have not found any yet.

Thanks in advance.
  #2  
Old 09-24-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

You can use the realtime() command (refer to the command documentation for parameters and return values) to record the time at the beginning and end of your function. Then compare the values to see how long it took.
The Following User Says Thank You to Phil BoBo For This Useful Post:
Yongbin Kim (09-24-2010)
  #3  
Old 09-24-2010
Yongbin Kim Yongbin Kim is offline
Flexsim User
 
Join Date: Aug 2010
Posts: 2
Downloads: 0
Uploads: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Yongbin Kim is on a distinguished road
Default

Thanks, Phil BoBo. That was the command I was looking for. I appreciate your help.


Thread Thread Starter Forum Replies Last Post
Displaying the simulation time with the various date/time formats. Regan Blackett Tips and Tricks 12 11-12-2012 08:01 AM
What is the exact start time of dewell time? zhang xin Container Terminal (CT) Library 1 11-23-2009 10:56 AM
All time related values 0,0000001 time units delayed Patrick Cap Q&A 2 05-01-2009 01:50 AM
Inter Arrival Time by Time of Day Mod Brandon Peterson Tips and Tricks 0 04-23-2008 11:13 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.