suricata
util-clock.h File Reference
#include <time.h>
Include dependency graph for util-clock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLOCK_INIT   clock_t clo1, clo2; clo1 = clo2 = 0;
 
#define CLOCK_START   clo1 = clock()
 
#define CLOCK_END   clo2 = clock()
 
#define CLOCK_PRINT_SEC   printf("Seconds spent: %.4fs\n", ((clo2 - clo1)/(double)CLOCKS_PER_SEC))
 
#define GET_CLOCK_END_SECS   ((clo1 - clo2)/(double)CLOCKS_PER_SEC)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Definition in file util-clock.h.

Macro Definition Documentation

#define CLOCK_END   clo2 = clock()

Definition at line 34 of file util-clock.h.

#define CLOCK_INIT   clock_t clo1, clo2; clo1 = clo2 = 0;

Definition at line 31 of file util-clock.h.

#define CLOCK_PRINT_SEC   printf("Seconds spent: %.4fs\n", ((clo2 - clo1)/(double)CLOCKS_PER_SEC))

Definition at line 36 of file util-clock.h.

#define CLOCK_START   clo1 = clock()

Definition at line 32 of file util-clock.h.

#define GET_CLOCK_END_SECS   ((clo1 - clo2)/(double)CLOCKS_PER_SEC)

Definition at line 38 of file util-clock.h.