We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e086fa commit 39a138fCopy full SHA for 39a138f
src/include/portability/instr_time.h
@@ -32,9 +32,9 @@
32
*
33
* INSTR_TIME_GET_MILLISEC(t) convert t to double (in milliseconds)
34
35
- * INSTR_TIME_GET_MICROSEC(t) get t in microseconds
+ * INSTR_TIME_GET_MICROSEC(t) convert t to uint64 (in microseconds)
36
37
- * INSTR_TIME_GET_NANOSEC(t) get t in nanoseconds
+ * INSTR_TIME_GET_NANOSEC(t) convert t to uint64 (in nanoseconds)
38
39
* Note that INSTR_TIME_SUBTRACT and INSTR_TIME_ACCUM_DIFF convert
40
* absolute times to intervals. The INSTR_TIME_GET_xxx operations are
@@ -123,7 +123,7 @@ pg_clock_gettime_ns(void)
123
((t) = pg_clock_gettime_ns())
124
125
#define INSTR_TIME_GET_NANOSEC(t) \
126
- ((t).ticks)
+ ((int64) (t).ticks)
127
128
129
#else /* WIN32 */
0 commit comments