measure velocity

First of all thank u for fast replie.
I thought about what u suggest. I can put distance sensor for that and it will show when the swimmer reaches to the end of the pool but the target here is to culculate the velocity in real time at the moment and not at the end. Any other idea? :slight_smile: