<s> import time <EOL> import httplib <EOL> import apiclient . model <EOL> httplib__HTTPResponse__read_status = httplib . HTTPResponse . _read_status <EOL> httplib__HTTPResponse_begin = httplib . HTTPResponse . begin <EOL> httplib__HTTPConnection__send_output = httplib . HTTPConnection . _send_output <EOL> apiclient__BaseModel__response = apiclient . model . BaseModel . response <EOL> def perf__read_status ( self ) : <EOL> b = self . fp . read ( <NUM_LIT:1> ) <EOL> self . _stop_time = time . time ( ) <EOL> self . fp . _rbuf . write ( b ) <EOL> return httplib__HTTPResponse__read_status ( self ) <EOL> def perf_begin ( self ) : <EOL> resp = httplib__HTTPResponse_begin ( self ) <EOL> self . msg . addheader ( "<STR_LIT>" , self . _stop_time ) <EOL> return resp <EOL> httplib . HTTPResponse . _read_status = perf__read_status <EOL> httplib . HTTPResponse . begin = perf_begin <EOL> def perf__send_output ( self , message_body = None ) : <EOL> return httplib__HTTPConnection__send_output ( self , message_body ) <EOL> httplib . HTTPConnection . _send_output = perf__send_output <EOL> def perf_response ( self , resp , content ) : <EOL> return ( resp , apiclient__BaseModel__response ( self , resp , content ) ) <EOL> apiclient . model . BaseModel . response = perf_response </s>
