MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / inet_debug_timer

Function inet_debug_timer

src/remote/inet.cpp:199–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197static ULONG INET_bytes_recv = 0;
198
199static ULONG inet_debug_timer()
200{
201/**************************************
202 *
203 * i n e t _ d e b u g _ t i m e r
204 *
205 **************************************
206 *
207 * Functional description
208 * Utility function used in DEBUG mode only to put a timestamp
209 * since start of connection on each debug output message.
210 *
211 * This has been implemented and tested on SOLARIS, and may
212 * need tweeking on any other platform where DEBUG is needed.
213 *
214 **************************************/
215#ifdef HAVE_GETTIMEOFDAY
216 struct timeval tv;
217 GETTIMEOFDAY(&tv);
218 return (tv.tv_sec * 1000 + tv.tv_usec - INET_start_time);
219#else
220 struct timeb now;
221 ftime(&now);
222 return (now.time * 1000 + now.millitm - INET_start_time);
223#endif // HAVE_GETTIMEOFDAY
224}
225#endif // DEBUG
226
227const ULONG MAX_DATA_LW = 1448; // Low Water mark

Callers 6

INET_connectFunction · 0.85
receiveFunction · 0.85
send_fullFunction · 0.85
send_partialFunction · 0.85
packet_printFunction · 0.85
packet_receiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected