Update perf_counter.c