diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-06 22:15:55 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-06 22:15:55 +0300 |
commit | a54d4ed183927f15e1853b83106acebeeeee11c8 (patch) | |
tree | 4299e40c3a6dbb11359a33c6f432a3345ad13238 /src | |
parent | 39a138fbef87803ab7fe494243c1ba36a093a0e8 (diff) | |
download | postgresql-a54d4ed183927f15e1853b83106acebeeeee11c8.tar.gz postgresql-a54d4ed183927f15e1853b83106acebeeeee11c8.zip |
Fix datatypes in comments in instr_time.h
The INSTR_TIME_GET_NANOSEC(t) and INSTR_TIME_GET_MICROSEC(t) macros
return a signed int64.
Discussion: https://www.postgresql.org/message-id/ZrHkv3MAQfwNSmTG@ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src')
-rw-r--r-- | src/include/portability/instr_time.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/portability/instr_time.h b/src/include/portability/instr_time.h index a6fc1922f20..e66ecf34cd5 100644 --- a/src/include/portability/instr_time.h +++ b/src/include/portability/instr_time.h @@ -32,9 +32,9 @@ * * INSTR_TIME_GET_MILLISEC(t) convert t to double (in milliseconds) * - * INSTR_TIME_GET_MICROSEC(t) convert t to uint64 (in microseconds) + * INSTR_TIME_GET_MICROSEC(t) convert t to int64 (in microseconds) * - * INSTR_TIME_GET_NANOSEC(t) convert t to uint64 (in nanoseconds) + * INSTR_TIME_GET_NANOSEC(t) convert t to int64 (in nanoseconds) * * Note that INSTR_TIME_SUBTRACT and INSTR_TIME_ACCUM_DIFF convert * absolute times to intervals. The INSTR_TIME_GET_xxx operations are |