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.


#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

Victor Julien

Definition in file util-clock.h.

Macro Definition Documentation


#define CLOCK_END   clo2 = clock()

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


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

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


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

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


#define CLOCK_START   clo1 = clock()

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


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

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