Assuming a straight line and assuming 1G is your max acceleration: you accelerate for 10 years, reach your maximum velocity then flip and do the same thing in the other direction. You'll reach your destination with 0 velocity.