When an object does not start at rest, you need to measure both the initial velocity and the final velocity to be able to calculate the acceleration. One way to to do this is to use a double mask.
To calculate acceleration, start by measuring the time it takes to travel between the start and end of the journey. Calculate the velocity using the formula: velocity = distance/time. Then ...