Propeller Code Execution Time
coryco2
Posts: 107
This may be a complete novice question, but is there an easy way to figure out exactly how much time Spin/PASM code takes to execute? I realize that it will depend on the clock, but do each of the commands take a specific number of clock cycles to execute, for example? And is this consistent, or in a multi-cog program, does the hub action cause the timing to vary somewhat?
Comments
of more specifically the Code Execution Time section: http://www.parallax.com/portals/0/propellerqna/
Do read the material referenced above, though here's a quick bit of code to show you how it works.
http://www.parallaxsemiconductor.com/an009
All current Application Notes can be found at:
http://www.parallaxsemiconductor.com/appnotes
That is, why doesn't this:
...just give me a slightly longer time value than this:
(The timing code actually works fine.)