Welcome to the Parallax Discussion Forums, sign-up to participate.

T Chap
Posts: **3,984**

in Propeller 1

Question. If a program in main launches a cog and sends it pointers.

If there a way to calculate the difference in time it could take to make a = b using the method above versus if the main program did the equation itself a:=b. And is the time difference affected based on the order of the cogs and if the sub is at some unknown cog number. I’m trying to see if this time difference can be determined at 80Mhz

Pub main ‘Start new cog and send long ptr @aptr @bptr Repeat If somethinghappens Newcog.Somemethod New cog Pub somemethod Long[a] := long[b]

If there a way to calculate the difference in time it could take to make a = b using the method above versus if the main program did the equation itself a:=b. And is the time difference affected based on the order of the cogs and if the sub is at some unknown cog number. I’m trying to see if this time difference can be determined at 80Mhz

## Comments

2,999266fromSpin, there is also some overhead involved with actually doing the starting.Parallax used to have a little table with more detailed timings on their site, but I can't find it now.