Hi,
I do not understand what you mean you need the distance between two hello interval.
First, what do you mean by distance between two hello interval? Is the distance travelled by the node during that time?
Where do you want that information? If it is at the node who generates the hello, then no need to create trace source. A local temp variable can give you the previous position.
If it is at another node that receives the hello, again, no need to trace since you have that information received from the hello.
If you still want a trace source and there isn't one, yes, you need to implement it yourself
Regards,
K