Skip to content

Commit 01126dc

Browse files
committed
Fix obsolete comments in instr_time.h.
Commit 623cc67 removed gettimeofday(), and commits 24c3ce8 and 495ed0e 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 <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/295419.1659918447%40sss.pgh.pa.us
1 parent 9a9f25e commit 01126dc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/include/portability/instr_time.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
* portable high-precision interval timing
55
*
66
* This file provides an abstraction layer to hide portability issues in
7-
* interval timing. On Unix we use clock_gettime() if available, else
8-
* gettimeofday(). On Windows, gettimeofday() gives a low-precision result
9-
* so we must use QueryPerformanceCounter() instead. These macros also give
10-
* some breathing room to use other high-precision-timing APIs.
7+
* interval timing. On Unix we use clock_gettime(), and on Windows we use
8+
* QueryPerformanceCounter(). These macros also give some breathing room to
9+
* use other high-precision-timing APIs.
1110
*
1211
* The basic data type is instr_time, which all callers should treat as an
1312
* opaque typedef. instr_time can store either an absolute time (of

0 commit comments

Comments
 (0)