Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2010-11-14
2010-11-14 14:15:08 by Jonas Wallden <jonasw@roxen.com>
c7742326b792eb2283656b3c3b0e1050cee380aa (
10
lines) (+
6
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Eliminate a redundant call to gethrtime().
Rev: server/protocols/http.pike:1.630
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2009, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
629
2010/11/
10
10
:
18
:
13
marty
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
630
2010/11/
14
14
:
15
:
08
jonasw
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
2963:
REQUEST_WERR("HTTP: handle_request()"); TIMER_START(handle_request);
-
queue_time
= gethrtime() - queue_time;
+
int
now
= gethrtime()
;
+
queue_time = now
- queue_time;
#ifdef MAGIC_ERROR if(prestate->old_error)
3001:
MARK_FD("HTTP handling request");
-
handle_time =
gethrtime()
;
+
handle_time =
now
;
#if constant(System.CPU_TIME_IS_THREAD_LOCAL) handle_vtime = gethrvtime(); #endif