Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01126dc

Browse files
committed
Fix obsolete comments in instr_time.h.
Commit623cc67 removed gettimeofday(), and commits24c3ce8 and495ed0e removed support for very old Windows releases with low accuracytimers, 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 parent9a9f25e commit01126dc

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)

[8]ページ先頭

©2009-2025 Movatter.jp