Branch: Tag:

2010-11-14

2010-11-14 14:15:08 by 0

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