How to measure the time it takes an object to go through two points with blueprint?

Im new to Blueprint and i ve been trying to create a way to measure the time it takes the ball to go from point a to point b ( in this case the horizontal planes) but after hours and hours of trying i´ve had no success even after using as base various Youtube tutorials that do diferent timers, so any help would be very aprecciated.

Thanks.

(Please excuse my english, it is not my first languaje)

Well, just use

image

when it’s at A, and again at B. Done.

But… how do you know when it passes A and B? Have you setup collision, or…?

If you aren’t having any collisions to check A and B and would like to calculate the time, you can use the following formula:

s = vt <-> t = s/v, where t = time, s = distance between A and B, and v = velocity of the ball relative to direction of segment from A to B

In case you are physics simulating the ball and it has gravity (assuming it falls straight down and starts with velocity 0):

t = sqrt(2 * a * s) / a, where a = gravity (980 cm/s^2), and s = Z-distance between A and B

If you have starting velocity and the ball respects gravity, you need to use quadratic equation solving from equation:

s = vt + 0.5at^2 <-> 0.5at^2 + vt + s = 0 <-> t = (-v +-sqrt(v^2 - 4 * a * s)) / a

im still trying to find a way to do so, or think of a way to measure the time with a relation with distance. again, any help would be very aprecciated.