42 static char result[100];
47 if (ru1.
tv.tv_usec < ru0->
tv.tv_usec)
50 ru1.
tv.tv_usec += 1000000;
64 _(
"CPU: user: %d.%02d s, system: %d.%02d s, elapsed: %d.%02d s"),
69 (
int) (ru1.
tv.tv_sec - ru0->
tv.tv_sec),
70 (
int) (ru1.
tv.tv_usec - ru0->
tv.tv_usec) / 10000);
const char * pg_rusage_show(const PGRUsage *ru0)
void pg_rusage_init(PGRUsage *ru0)
int getrusage(int who, struct rusage *rusage)
int gettimeofday(struct timeval *tp, void *tzp)