Discrete sampling of continuous wave terahertz radiation