Issues in Measuring Capacitance

If you can't get it to work like it should, there is a simpler sketch, and it even comes with a diagram:

I have tried 3 different capacitors, all measured within 10% of the value printed on them

1mF, 0,33 mF and 0,1 mF