Quantum limit on time measurement in a gravitational field