--- a/perf_examples/perf_util.c
+++ b/perf_examples/perf_util.c
@@ -516,6 +516,7 @@
 
 			}
 		} else {
+			time_enabled = time_running = 0;
 			/*
 			 * this program does not use FORMAT_GROUP when there is only one event
 			 */