def getTimeData(sample_rate:float, num_samples:int) -> list:
    """Create and return an array containing the time each sample is taken. This assumes equal sampling periods. Used to set the time axis for plotting."""

    time_array = []
    for i in range(num_samples): # Iterate through each sample
        sample_time = i/sample_rate # Calculate the time this sample is taken
        time_array.append(sample_time) # Add time to results array

    return time_array