mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 14:03:02 +01:00
The call to ftime is obsoleted by gettimeofday.
This commit is contained in:
parent
da04bb058a
commit
8c981da952
@ -31,7 +31,7 @@
|
||||
*
|
||||
*/
|
||||
/*
|
||||
$Id: inet.cpp,v 1.14 2002-07-29 15:37:55 skywalker Exp $
|
||||
$Id: inet.cpp,v 1.15 2002-08-20 11:49:10 eku Exp $
|
||||
*/
|
||||
#include "firebird.h"
|
||||
#include "../jrd/ib_stdio.h"
|
||||
@ -310,6 +310,15 @@ static ULONG inet_debug_timer(void)
|
||||
* need tweeking on any other platform where DEBUG is needed.
|
||||
*
|
||||
**************************************/
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
struct timeval tv;
|
||||
#ifdef GETTIMEOFDAY_RETURNS_TIMEZONE
|
||||
(void)gettimeofday(&tv, (struct timezone *)0);
|
||||
#else
|
||||
(void)gettimeofday(&tv);
|
||||
#endif
|
||||
return (tv.tv_sec*1000 + tv.tv_usec - INET_start_time);
|
||||
#else
|
||||
struct timeb now;
|
||||
(void) ftime(&now);
|
||||
return (now.time * 1000 + now.millitm - INET_start_time);
|
||||
|
Loading…
Reference in New Issue
Block a user