parameters: (interval)
return_statement: return (tot_before, tot_after, pnic_before, pnic_after)
docstring: Retrieve raw stats within an interval window.
docstring_summary: Retrieve raw stats within an interval window.
docstring_tokens: Retrieve raw stats within an interval window .
function: def poll(interval):
      """Retrieve raw stats within an interval window."""
      tot_before = psutil.net_io_counters()
      pnic_before = psutil.net_io_counters(pernic=True)
      # sleep some time
      time.sleep(interval)
      tot_after = psutil.net_io_counters()
      pnic_after = psutil.net_io_counters(pernic=True)
      return (tot_before, tot_after, pnic_before, pnic_after)
function_tokens: def poll ( interval ) : tot_before = psutil . net_io_counters ( ) pnic_before = psutil . net_io_counters ( pernic = True ) # sleep some time time . sleep ( interval ) tot_after = psutil . net_io_counters ( ) pnic_after = psutil . net_io_counters ( pernic = True ) return ( tot_before , tot_after , pnic_before , pnic_after )