PRTime loadTime;
InputTestConsumer::OnStopBinding(nsISupports* context,                                 nsresult aStatus,                                 const PRUnichar* aMsg){  URLLoadInfo* info = (URLLoadInfo*)context;  PRTime loadTime;  if (info) {    info->mTotalTime = PR_Now() - info->mTotalTime;    loadTime = info->mTotalTime - info->mConnectTime;    printf("\nFinished loading: %s  Status Code: %x\n", info->Name(), aStatus);    printf("\tRead: %d bytes.\n", info->mBytesRead);    printf("\tTime to connect: %f seconds\n", (info->mConnectTime/1000UL)/1000.0);    printf("\tTime to read: %f seconds.\n", (loadTime/1000UL)/1000.0);    printf("\tThroughput: %f bps.\n", (info->mBytesRead*8)/((loadTime/1000UL)/1000.0));  } else {    printf("\nFinished loading: UNKNOWN URL. Status Code: %x\n", aStatus);  }/*  nsCOMPtr<nsIURI> pURI(do_QueryInterface(context));  char* location = nsnull;  if (pURI) {    pURI->GetSpec(&location);  }  printf("\nFinished loading: %s  Status Code: %x\n", location ? location : "UNKNOWN URL", aStatus);  if (location) {    nsCRT::free(location);  }*/  gKeepRunning -= 1;  return NS_OK;}