Get CPU Usage--- The Updates
So…
I wrote the initial Get CPU Routine and got some feedback. (See my prior writing for the link to that video).
Two of the suggestions were:
A> Remove the SaveArea Logic from the routine because the SaveArea is not used which will improve the performance.
B> David Staudacher wrote a version that used the Extract CPU Time instruction. Which the manual states is faster.
I thought it would be interesting to see how much faster those routines were.
The video above, is using the Get CPU Usage routines to measure themselves.
Also, I figured out why the original routine which was named CPUTIME would NOT work when invoked statically. (Hint: I got a suggestion on where to look). I did the following video to explain what I did wrong: Why Static Call to CPUTIME Got Invalid Results