add function reset_latency_stats() to set all stats to zero