* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "test.h"
+
+#ifdef RTE_LIBRTE_TIMER
/*
* Timer
* =====
#include <sys/queue.h>
#include <math.h>
-#include <cmdline_parse.h>
-
#include <rte_common.h>
#include <rte_log.h>
#include <rte_memory.h>
#include <rte_random.h>
#include <rte_malloc.h>
-#include "test.h"
#define TEST_DURATION_S 20 /* in seconds */
#define NB_TIMER 4
rte_timer_stop_sync(&mytiminfo[i].tim);
}
- rte_timer_dump_stats();
+ rte_timer_dump_stats(stdout);
return 0;
}
+
+#else
+
+int
+test_timer(void)
+{
+ return 0;
+}
+
+#endif