A method for obtaining time-resolved diffraction data from laser-shocked solids was developed at the High-Energy beamline ID15 of the European Synchrotron Radiation Facility. This method combines the use of an appropriate timing electronics with a triple-axis diffractometer coupled to a short-pulsed laser source. Real time diffraction measurements were performed on single crystalline samples in order to monitor their compression under different loading conditions through the evolution of the Bragg reflection. As an example, we present results obtained from cadmium sulfide single crystals at stress values below and near the Hexagonal-Closed Packed to Rock Salt pressure-induced phase transition. These results clearly show two different behavior when the sample is compressed below and above its elastic limit.