changed name of latency to get_latency
finished latency_inputfile