Go to the documentation of this file.
24 #ifndef SURICATA_UTIL_CLOCK_H
25 #define SURICATA_UTIL_CLOCK_H
31 #define CLOCK_INIT clock_t clo1, clo2; clo1 = clo2 = 0;
32 #define CLOCK_START clo1 = clock()
34 #define CLOCK_END clo2 = clock()
36 #define CLOCK_PRINT_SEC \
37 printf("Seconds spent: %.4fs\n", ((double)(clo2 - clo1) / (double)CLOCKS_PER_SEC))