/*-
* BSD LICENSE
*
- * Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "test.h"
+
+#ifdef RTE_LIBRTE_TIMER
/*
* Timer
* =====
#include <rte_random.h>
#include <rte_malloc.h>
-#include "test.h"
#define TEST_DURATION_S 20 /* in seconds */
#define NB_TIMER 4
return 0;
}
+
+#else
+
+int
+test_timer(void)
+{
+ return 0;
+}
+
+#endif