本文整理汇总了C++中Stats::ElapsedTransferTime方法的典型用法代码示例。如果您正苦于以下问题:C++ Stats::ElapsedTransferTime方法的具体用法?C++ Stats::ElapsedTransferTime怎么用?C++ Stats::ElapsedTransferTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stats
的用法示例。
在下文中一共展示了Stats::ElapsedTransferTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DisplayStatistics
void DisplayStatistics(const RECT& rect, const Stats& stats, HDC& hdc) {
int xpos = rect.left + 1;
int ypos = rect.top + 1;
DisplayElapsedTime(stats.ElapsedTransferTime(), hdc, xpos, ypos);
DisplaySendProtocolEfficiency(stats.SendProtocolEfficiency(), hdc, xpos, ypos);
DisplayReceiveProtocolEfficiency(stats.ReceiveProtocolEfficiency(), hdc, xpos, ypos);
DisplayEffectiveSendBPS(stats.EffectiveSendBPS(), hdc, xpos, ypos);
DisplayEffectiveReceiveBPS(stats.EffectiveReceiveBPS(), hdc, xpos, ypos);
DisplayNumPacketsSent(stats.NumPacketsSent(), hdc, xpos, ypos);
DisplayBitErrorRate(stats.BitErrorRate(), hdc, xpos, ypos);
//DisplayNumACKs(stats.NumACKs(), hdc, xpos, ypos);
//DisplayNumNAKs(stats.NumNAKs(), hdc, xpos, ypos);
DisplayTotalBitsSent(stats.TotalBitsSent(), hdc, xpos, ypos);
DisplayTotalBitsReceived(stats.TotalBitsReceived(), hdc, xpos, ypos);
DisplayResponseTime(stats.ResponseTime(), hdc, xpos, ypos);
DisplayTotalTimeouts(stats.TotalTimeouts(), hdc, xpos, ypos);
DisplayTotalRequests(stats.TotalRequests(), hdc, xpos, ypos);
DisplayAverageSendPadding(stats.AverageSendPadding(), hdc, xpos, ypos);
DisplayAverageReceivePadding(stats.AverageReceivePadding(), hdc, xpos, ypos);
DisplayPacketsSentPerSecond(stats.PacketsSentPerSecond(), hdc, xpos, ypos);
DisplayPacketsReceivedPerSecond(stats.PacketsReceivedPerSecond(), hdc, xpos, ypos);
}
示例2: HandleStats
//.........这里部分代码省略.........
break;
case 18:
return stats.GetTotalACKsReceived();
break;
case 19:
return stats.GetTotalACKsSent();
break;
case 20:
return stats.GetTotalNAKsReceived();
break;
case 21:
return stats.GetTotalNAKsSent();
break;
case 22:
return stats.GetTotalTimeouts();
break;
case 23:
return stats.GetTotalPadding();
break;
case 24:
return stats.GetTotalRequests();
break;
case 25:
return stats.GetElapsedTime();
break;
case 26:
return stats.GetUsefulBitsSent();
break;
case 27:
return stats.GetUsefulBitsReceived();
break;
case 28:
return stats.GetTotalResponseTime();
break;
case 29:
return stats.SendProtocolEfficiency();
break;
case 30:
return stats.ReceiveProtocolEfficiency();
break;
case 31:
return stats.EffectiveSendBPS();
break;
case 32:
return stats.EffectiveReceiveBPS();
break;
case 33:
return stats.NumPacketsSent();
break;
case 34:
return stats.BitErrorRate();
break;
case 35:
return stats.NumACKsReceived();
break;
case 36:
return stats.NumACKsSent();
break;
case 37:
return stats.NumNAKsReceived();
break;
case 38:
return stats.NumNAKsSent();
break;
case 39:
return stats.TotalBitsSent();
break;
case 40:
return stats.TotalBitsReceived();
break;
case 41:
return stats.ResponseTime();
break;
case 42:
return stats.ElapsedTransferTime();
break;
case 43:
return stats.TotalTimeouts();
break;
case 44:
return stats.TotalRequests();
break;
case 45:
return stats.AverageSendPadding();
break;
case 46:
return stats.AverageReceivePadding();
break;
case 47:
return stats.PacketsSentPerSecond();
break;
case 48:
return stats.PacketsReceivedPerSecond();
break;
default:
break;
}
LeaveCriticalSection(§ion);
return 0;
}