The simplest way is to get the speed every second and add this up. For crafts the whole process is much more complicated, because every planet is moving too. So if you want the exact distance traveled of a craft relative to the starting point you need mutch more calculation.
The simplest way is to get the speed every second and add this up. For crafts the whole process is much more complicated, because every planet is moving too. So if you want the exact distance traveled of a craft relative to the starting point you need mutch more calculation.