summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Munro2022-08-08 23:50:03 +0000
committerThomas Munro2022-08-08 23:50:03 +0000
commit01126dc8cf2c6e06babf1bbb4dab41a4a96d704f (patch)
tree3705ae2d862921592bb5be88e7f7060ca1bf305a /src
parent9a9f25e217428cdf4119ff08b77f9f5bd45f563c (diff)
Fix obsolete comments in instr_time.h.
Commit 623cc673 removed gettimeofday(), and commits 24c3ce8f and 495ed0ef removed support for very old Windows releases with low accuracy timers, but references to those things were left behind in comments. Reported-by: Tom Lane <[email protected]> Discussion: https://postgr.es/m/295419.1659918447%40sss.pgh.pa.us
Diffstat (limited to 'src')
-rw-r--r--src/include/portability/instr_time.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/portability/instr_time.h b/src/include/portability/instr_time.h
index 8faeca8b49e..22bcf3d2883 100644
--- a/src/include/portability/instr_time.h
+++ b/src/include/portability/instr_time.h
@@ -4,10 +4,9 @@
* portable high-precision interval timing
*
* This file provides an abstraction layer to hide portability issues in
- * interval timing. On Unix we use clock_gettime() if available, else
- * gettimeofday(). On Windows, gettimeofday() gives a low-precision result
- * so we must use QueryPerformanceCounter() instead. These macros also give
- * some breathing room to use other high-precision-timing APIs.
+ * interval timing. On Unix we use clock_gettime(), and on Windows we use
+ * QueryPerformanceCounter(). These macros also give some breathing room to
+ * use other high-precision-timing APIs.
*
* The basic data type is instr_time, which all callers should treat as an
* opaque typedef. instr_time can store either an absolute time (of