Optical measurement of the director relaxation time in a periodically reoriented nematic liquid crystal