|
Re: Create single file for empirical values in labview
Milliseconds divided by one million gives nanoseconds. And yes, I was simply showing a common and accurate way of profiling stuff, though I didn't really show it.
The first picture shows a way to time this, and the second shows a way to get zero when doing something a million times.
Variables aren't efficient, but inefficient has different meanings depending on what you are doing. Since this will allow you to change code and retune on the fly without even recompiling, I think it is a good tradeoff. If it seems like it is getting too expensive, you pull the global outside of a fast loop and read it once and put it into a shift register.
Greg McKaskle
|