Win32 gettimeofday() comment patch
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)
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
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?
--
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
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?-- 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?
--
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