Electrical conductivity measurements of warm dense matter with time-resolved terahertz spectroscopy