+
+ struct timeval server_start;
+ gettimeofday(&server_start, NULL);
+ if (is_reexec) {
+ // Measure time from we started deserializing (below) to now, when basically everything
+ // is up and running. This is, in other words, a conservative estimate of how long our
+ // “glitch” period was, not counting of course reconnects if the configuration changed.
+ double glitch_time = server_start.tv_sec - serialize_start.tv_sec +
+ 1e-6 * (server_start.tv_usec - serialize_start.tv_usec);
+ fprintf(stderr, "Re-exec happened in approx. %.0f ms.\n", glitch_time * 1000.0);
+ }