बंद कर दिया है स्रोत कोड हम इन समय अंक को खोजने को देख कर:
apr_time_t start, /* Start of connection */
connect, /* Connected, start writing */
endwrite, /* Request written */
beginread, /* First byte of input */
done; /* Connection closed */
और जब अनुरोध किया जाता है कुछ समय के रूप में जमा हो जाती है:
s->starttime = c->start;
s->ctime = ap_max(0, c->connect - c->start);
s->time = ap_max(0, c->done - c->start);
s->waittime = ap_max(0, c->beginread - c->endwrite);
और 'संसाधन की अवधि' बाद में के रूप में
s->time - s->ctime;
तो गणना की जाती है अगर हम एक समय के लिए इस का अनुवाद:
t1: Start of connection
t2: Connected, start writing
t3: Request written
t4: First byte of input
t5: Connection closed
फिर परिभाषाओं होगा:
Connect: t1-t2 Most typically the network latency
Processing: t2-t5 Time to receive full response after connection was opened
Waiting: t3-t4 Time-to-first-byte after the request was sent
Total time: t1-t5
मैं प्रसंस्करण लगता है कि समय अन्यथा कुल समय + प्रतीक्षा + प्रसंस्करण कनेक्ट किया जाएगा प्रतीक्षा समय भी शामिल है,। – phsiao