1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

pgbench: Improve time logic.

Instead of instr_time (struct timespec) and the INSTR_XXX macros,
introduce pg_time_usec_t and use integer arithmetic.  Don't include the
connection time in TPS unless using -C mode, but report it separately.

Author: Fabien COELHO <coelho@cri.ensmp.fr>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Discussion: https://postgr.es/m/20200227180100.zyvjwzcpiokfsqm2%40alap3.anarazel.de
This commit is contained in:
Thomas Munro
2021-03-10 16:09:50 +13:00
parent b1d6a8f868
commit 547f04e734
4 changed files with 232 additions and 245 deletions

View File

@ -3225,6 +3225,7 @@ pg_sha512_ctx
pg_snapshot
pg_stack_base_t
pg_time_t
pg_time_usec_t
pg_tz
pg_tz_cache
pg_tzenum