tools/python/google/gethash_timer.py
def LogResponse(sample_count, response_code, elapsed_time):
  '''Output the response for one GetHash query.
  Args:
    sample_count:  The current sample number.
    response_code: The HTTP response code for the GetHash request.
    elapsed_time:  The round-trip time (in milliseconds) for the
                   GetHash request.
  Returns:
    None.
  '''
  global g_file_handle
  output_list = (sample_count, response_code, elapsed_time)
  print('Request: %d, status: %d, elapsed time: %f ms' % output_list)
  if g_file_handle is not None:
    g_file_handle.write(('%d,%d,%f' % output_list) + '\n')
    g_file_handle.flush()
Output the response for one GetHash query.
  Args:
    sample_count:  The current sample number.
    response_code: The HTTP response code for the GetHash request.
    elapsed_time:  The round-trip time (in milliseconds) for the
                   GetHash request.
  Returns:
    None.
  
Output the response for one GetHash query.
Output the response for one GetHash query .
def LogResponse(sample_count, response_code, elapsed_time):
  global g_file_handle
  output_list = (sample_count, response_code, elapsed_time)
  print('Request: %d, status: %d, elapsed time: %f ms' % output_list)
  if g_file_handle is not None:
    g_file_handle.write(('%d,%d,%f' % output_list) + '\n')
    g_file_handle.flush()
def LogResponse ( sample_count , response_code , elapsed_time ) : global g_file_handle output_list = ( sample_count , response_code , elapsed_time ) print ( 'Request: %d, status: %d, elapsed time: %f ms' % output_list ) if g_file_handle is not None : g_file_handle . write ( ( '%d,%d,%f' % output_list ) + '\n' ) g_file_handle . flush ( )
Output the response for one GetHash query.
Output the response for one GetHash query .
'''Output the response for one GetHash query.
  Args:
    sample_count:  The current sample number.
    response_code: The HTTP response code for the GetHash request.
    elapsed_time:  The round-trip time (in milliseconds) for the
                   GetHash request.
  Returns:
    None.
  '''
None
sample_count
The current sample number.
The current sample number .
response_code
The HTTP response code for the GetHash request.
The HTTP response code for the GetHash request .
elapsed_time
The round-trip time (in milliseconds) for the
GetHash request.
The round - trip time ( in milliseconds ) for the GetHash request .