diff packages/net/tcpip/current/include/machine/param.h @ 199:920b9b754b53

Merge from eCos master repository on 2001-12-15-12:00:33-GMT
author jlarmour
date Sat, 15 Dec 2001 13:42:19 +0000
parents 02ea4320376c
children e0c0827131d1
line wrap: on
line diff
--- a/packages/net/tcpip/current/include/machine/param.h
+++ b/packages/net/tcpip/current/include/machine/param.h
@@ -122,6 +122,7 @@ struct net_stats {
     cyg_uint32       min_time, max_time, total_time;
 };
 
+#ifdef CYGDBG_NET_TIMING_STATS
 #define START_STATS()                                   \
     cyg_uint32 start_time, end_time, elapsed_time;      \
     HAL_CLOCK_READ(&start_time);
@@ -141,6 +142,10 @@ struct net_stats {
         stats.max_time = elapsed_time;                                                  \
     stats.total_time += elapsed_time;                                                   \
     stats.count++;
+#else
+#define START_STATS() 
+#define FINISH_STATS(X)
+#endif
 
 // timeout support
 typedef void (timeout_fun)(void *);