The rate of charging the capacitor will not be linear, and will depend on the difference between the capacitor volts and the opamp output. You will need to use a current mirror to ensure that the current into the capacitor is proportional to the current being measured. I can see a bad circuit where the capacitor will never reach the threshold voltage with a low current.