diff --git a/src/or/command.c b/src/or/command.c
index 0096f28b09..475bb23c94 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -31,6 +31,7 @@ static void command_process_created_cell(cell_t *cell, connection_t *conn);
static void command_process_relay_cell(cell_t *cell, connection_t *conn);
static void command_process_destroy_cell(cell_t *cell, connection_t *conn);
+#ifdef KEEP_TIMING_STATS
/** This is a wrapper function around the actual function that processes the
* cell that just arrived on conn. Increment *time
* by the number of microseconds used by the call to *func(cell, conn).
@@ -56,6 +57,7 @@ static void command_time_process_cell(cell_t *cell, connection_t *conn, int *tim
}
*time += time_passed;
}
+#endif
/** Process a cell that was just received on conn. Keep internal
* statistics about how many of each cell we've processed so far