To download NI software, including the products shown below, visit ni.com/downloads.
Overview
If you are looking to benchmark your code, you can accomplish this by using a Flat Sequence Structure and the Tick Count (ms) timer. The 3-sequence Flat Sequence Structure allows you to take a time measurement before code is run, run code, and measure time after code is run. Comparing these two times helps you measure elapsed time, or the time it took for your code to run.
Description
This VI will allow you to benchmark your code. Place the section of code you want to benchmark within the sequence structure and set the number of iterations, and the code will display the maximum, minimum, and average runtimes of your code.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Description-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.