Spatially resolved measurement of relaxation times in a microfabricated vapor cell