PGROUTING  3.2
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: %lf sec = (%lf - %f) / CLOCKS_PER_SEC ",
36  msg,
37  elapsed_t,
38  (double) end_t,
39  (double) start_t);
40 }

Referenced by compute(), compute_trsp(), get_combinations_2_columns(), get_edges_5_columns(), get_edges_9_columns(), get_edges_basic(), get_edges_costFlow(), get_edges_flow(), pgr_get_bigIntArr(), pgr_get_coordinates(), pgr_get_delauny(), pgr_get_matrixRows(), pgr_get_pd_orders_general(), pgr_get_restrictions(), pgr_get_vehicles_general(), pgr_point_input(), process(), and process_combinations().