What sort of capacitor are you looking at?
Is it the open-circuit self discharge leakage which you are looking at or through a particular load?
Those makes a huge difference to the best way to do this. A 10000microFarad electrolytic is a lot different to a 10pF ceramic.
Also, do you always discharge from 9V? (if you did that could make things easier).
It is parallel combination of four 2700uF capacitor. They are discharged from 13,5V. I need to measure capacity of that capacitors. They are discharging through a 60 Ohm resistor and i think i measure some points (9, 6 and 3 volts) on discharging curve and calculate capacity like average of capacities calculated in this points.
Looks like by the time I posted this you gave the scenario of your problem... putting an voltage divider seems to be your best bet. If your max. output voltage is 13.5 (that's where it begins). You can probably make a voltage divider by three 10ks in series to measure the voltage from the third resistor. (If 60 Ohm resistor in the problem statement, you better use a rheostat and take readings from the middle)
Putting inputs more than 5V and more current through Arduino can damage it badly.
the circuit works nice, if i display it on osciloscope it is good. only thing that does not work is the program, voltage is in the correct bounds i have voltage divider parallel to the discharge resistor
I don't like the look of your analogRead(A13) because that would not work on my 168 arduino which has only A0,A1,A2,A3,A4 and A5.
Perhaps try writing a test routine in which setup contains little more than
Serial.begin(115200);
ut1 = micros();
Serial.print( analogRead(A13) );
Serial.print("\t");
Serial.print("0");
Serial.println();
for (m=0; m<500; m++)
{
delayMicroseconds(1000);
Serial.print( analogRead(A13) );
Serial.print("\t");
ut2 = micros();
ut3 = ut2-ut1;
Serial.print(ut3);
Serial.println();
} // less than a second
To get that to work on mine, I'd replace "A13" with "A0" or "0" and use the pin marked a0 on my arduino.
Someone gave me a ticking off the other day for using just a "0", so maybe ask your academic supervisor why that is bad practice.