A new variance ratio metric to detect the timescale of compensatory dynamics