pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
time_msg.c
1 
2 
3 
4 #include "postgres.h"
5 #include <time.h>
6 
7 #include "time_msg.h"
8 
9 void time_msg(char *msg, clock_t start_t, clock_t end_t) {
10  double elapsed_t = (double)(end_t - start_t) / CLOCKS_PER_SEC;
11  elog(DEBUG1, "Elapsed time for %s: %lfsec = (%lf - %f) / CLOCKS_PER_SEC ", msg, elapsed_t, (double) end_t, (double) start_t);
12 };