vrpRouting  0.3
time_msg.c File Reference
#include <time.h>
#include "c_common/postgres_connection.h"
#include "c_common/time_msg.h"
Include dependency graph for time_msg.c:

Go to the source code of this file.

Functions

void time_msg (char *msg, clock_t start_t, clock_t end_t)
 

Function Documentation

◆ time_msg()

void time_msg ( char *  msg,
clock_t  start_t,
clock_t  end_t 
)

Definition at line 32 of file time_msg.c.

32  {
33  double elapsed_t = (double)(end_t - start_t) / CLOCKS_PER_SEC;
34  elog(DEBUG2,
35  "Elapsed time for %s:\n %lf sec = (%lf - %f) / CLOCKS_PER_SEC ",
36  msg,
37  elapsed_t,
38  (double) end_t,
39  (double) start_t);
40 }

Referenced by db_get_breaks(), db_get_jobs(), db_get_matrix(), db_get_shipments(), db_get_time_windows(), db_get_vehicles(), get_matrixRows_general(), get_timeMultipliersGeneral(), pgr_get_bigIntArr(), pgr_get_pd_orders_general(), pgr_get_positiveIntArr(), and process().