waveform and determine_time