Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am looking for a way to time portions of a complex script that involves several loops, in an effort to optimize the code.

Is there a way to access current time milliseconds on FM? An Applescript would also work for me.

What I would like to do is to assign elapsed time to variables in key places in the script, sort of a benchmarking function.

Cheers,

Andreas

I am sorry Andreas, I cannot help you with your question because as far as I am aware FM only goes down to single units for seconds.

I am curious though, if you want to go down to milliseconds does it really matter (in fm terms)? If the differences are so small what would be gained?

Also, I suppose that if you really wanted to test to the millisecond why not multiply the number of records that you are looping through by factors of 1000 and then do the maths. Or possibly even loop 1000 times more often.

Forgive me if none of this is helpful. I am just thinking out loud (..erm in my head...) if you know what I mean

Phil

  • Author

Your point is well taken, Phil.

I suppose the way to do it would be to multiply the number of records up to a number that makes seconds significant and loop the script.

Can't help wondering why I didn't think of that. ;)

Thanks for the help.

Cheers,

Andreas

I have a personal rule, and goes this way if a script gets bothersome to await the completion of, is it most likely to blame an inadequate relational structure underneath.

By and large are the creation of real records, going to take much more time than changing a multilinekey, unless a employed CF have too many iterations/recursions to await competion. The CF's do better being short iterated and split over several keyvalues in a multicriteria relation each responding during the typing...

http://www.clevelandconsulting.com/support/viewtopic.php?t=664&start=0&postdays=0&postorder=asc&highlight=multi+criteria

So if you in anyway can avoid getting statistics from a join-table, the ditch it and turn towards CF's and multiciteria keying. BTW does the need for event-triggers evaporate ...at least for this task.

--sd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.