An accurate relative age estimator for globular clusters