refactor get_latency
1 file changed