标签:小数点 fiddler rdo done turn ssi one ret tostring
在Tool bar上面找到
Rules->CustomRules
在class Handlers{ 里面添加
//----------------------------显示请求时间,显示毫秒格式-------------
function BeginRequestTime(oS: Session)
{
if (oS.Timers != null)
{
return oS.Timers.ClientBeginRequest.ToString();
}
return String.Empty;
}
public static BindUIColumn("Time Taken")
function CalcTimingCol(oS: Session){
var sResult = String.Empty;
if ((oS.Timers.ServerDoneResponse > oS.Timers.ClientDoneRequest))
{
sResult = (oS.Timers.ServerDoneResponse - oS.Timers.ClientDoneRequest).TotalMilliseconds.ToString("#0");//不要小数点后的数
}
return sResult+=" ms";
}
标签:小数点 fiddler rdo done turn ssi one ret tostring
原文地址:http://www.cnblogs.com/micro-chen/p/7264728.html