Win32 gettimeofday() comment patch

Started by Qingqing Zhouover 20 years ago4 messagespatches
Jump to latest
#1Qingqing Zhou
zhouqq@cs.toronto.edu

Add a note to Win32 gettimeofday() emulation.

Regards,
Qingqing

---

Index: gettimeofday.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/port/gettimeofday.c,v
retrieving revision 1.6
diff -c -r1.6 gettimeofday.c
*** gettimeofday.c      16 May 2005 05:52:13 -0000      1.6
--- gettimeofday.c      16 Dec 2005 19:37:41 -0000
***************
*** 36,41 ****
--- 36,43 ----
  /*
   * timezone information is stored outside the kernel so tzp isn't used anymore.
+  * Note: this function is not for Win32 high precision timing purpose, see
+  * elapsed_time() etc.
   */
  int
  gettimeofday(struct timeval * tp, struct timezone * tzp)
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Qingqing Zhou (#1)
Re: Win32 gettimeofday() comment patch

Qingqing Zhou wrote:

Add a note to Win32 gettimeofday() emulation.

Applied, thanks.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#3Bruce Momjian
bruce@momjian.us
In reply to: Qingqing Zhou (#1)
Re: Win32 gettimeofday() comment patch

Patch applied. Thanks.

---------------------------------------------------------------------------

Qingqing Zhou wrote:

Add a note to Win32 gettimeofday() emulation.

Regards,
Qingqing

---

Index: gettimeofday.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/port/gettimeofday.c,v
retrieving revision 1.6
diff -c -r1.6 gettimeofday.c
*** gettimeofday.c      16 May 2005 05:52:13 -0000      1.6
--- gettimeofday.c      16 Dec 2005 19:37:41 -0000
***************
*** 36,41 ****
--- 36,43 ----
/*
* timezone information is stored outside the kernel so tzp isn't used anymore.
+  * Note: this function is not for Win32 high precision timing purpose, see
+  * elapsed_time() etc.
*/
int
gettimeofday(struct timeval * tp, struct timezone * tzp)

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#4Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#3)
Re: Win32 gettimeofday() comment patch

Bruce Momjian wrote:

Patch applied. Thanks.

By Alvaro. ;-)

---------------------------------------------------------------------------

Qingqing Zhou wrote:

Add a note to Win32 gettimeofday() emulation.

Regards,
Qingqing

---

Index: gettimeofday.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/port/gettimeofday.c,v
retrieving revision 1.6
diff -c -r1.6 gettimeofday.c
*** gettimeofday.c      16 May 2005 05:52:13 -0000      1.6
--- gettimeofday.c      16 Dec 2005 19:37:41 -0000
***************
*** 36,41 ****
--- 36,43 ----
/*
* timezone information is stored outside the kernel so tzp isn't used anymore.
+  * Note: this function is not for Win32 high precision timing purpose, see
+  * elapsed_time() etc.
*/
int
gettimeofday(struct timeval * tp, struct timezone * tzp)

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

-- 
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 359-1001
+  If your life is a hard drive,     |  13 Roberts Road
+  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073