Jump to content

Adding a timer around a chunk of code


Norm Kirchner

Recommended Posts

Perhaps I missed this in the thread, but has anyone at least proposed making some scripting code to script puttting the timing pattern around a chunk of selected code?

Yes, although not here - http://decibel.ni.com/content/thread/3481?tstart=0.

In that thread I posted an initial version I did which does the work but has two disadvantages -

  1. It's very messy.
  2. It doesn't clean up the code, so it really doesn't look nice.

I'm attaching a more recent version of that VI, but it still has these two basic issues (although less).

Add Timing Code.zip

Link to comment

I realized today that you can do this with a timed sequence, as one of its outputs is the time the frame took to execute. This alleviates the need for scripting completely at the price of having to load the sequence and the space its nodes take on the BD.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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