Have a Variable “Last Recorded Location”.
On BeginPlay, set this Variable to the ActorLocation.
On Event Tick, subtract the ActorLocation from the Last Recorded Location. The Length of the Difference Vector is your displacement in a Frame.
Simply add the Length to a float Variable “Distance Travelled”.