def func_to_time(x):
 y = ((5.0 * np.asarray(x)) - 10)
 time.sleep(y)
 return y

def func_to_time ( x ) : y = ( ( 5.0 * np . asarray ( x ) ) - 10 ) time . sleep ( y ) return y
this sleeps for y seconds for use with timing tests .