@sh.add_function(dsp, outputs=['times'])
def cycle_times(time_sample_frequency, time_length):
"""
Returns the time vector with constant time step [s].
:param time_sample_frequency:
Time frequency [1/s].
:type time_sample_frequency: float
:param time_length:
Length of the time vector [-].
:type time_length: float
:return:
Time vector [s].
:rtype: numpy.array
"""
dt = 1 / time_sample_frequency
return np.arange(0.0, time_length, dtype=float) * dt