@sh.add_function(dsp, outputs=['time_length'])
def calculate_time_length(time_sample_frequency, max_time):
"""
Returns the length of the time vector [-].
:param time_sample_frequency:
Time frequency [1/s].
:type time_sample_frequency: float
:param max_time:
Maximum time [s].
:type max_time: float
:return:
length of the time vector [-].
:rtype: int
"""
return np.floor(max_time * time_sample_frequency) + 1