]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linuxapp/eal/eal_timer.c
eal: reduce timer initialization time
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_timer.c
index 9ceff3301b29733842326e5d9c642fa0e7ed20a8..6f95d8e21d1dc4e207b94af226141b37870216d7 100644 (file)
@@ -271,7 +271,7 @@ get_tsc_freq(void)
 #ifdef CLOCK_MONOTONIC_RAW
 #define NS_PER_SEC 1E9
 
-       struct timespec sleeptime = {.tv_nsec = 5E8 }; /* 1/2 second */
+       struct timespec sleeptime = {.tv_nsec = NS_PER_SEC / 10 }; /* 1/10 second */
 
        struct timespec t_start, t_end;
        uint64_t tsc_hz;