On-target temporal characterization of optical pulses at relativistic intensity