The amniotic fluid test itself takes only a few minutes as it only involves collecting amniotic fluid.
However, it may take some time before the sample is taken, as the baby is checked with an echo before the sample is taken. Also, you will need to rest for 30-40 minutes after the test, so expect the whole process to take about one hour.