zoukankan
html css js c++ java
取得页面执行时间的代码
取得页面执行时间的代码
在Global.asax.cs文件中
protected
void
Application_BeginRequest(Object sender, EventArgs e)
{
Application[
"
StartTime
"
]
=
System.DateTime.Now;
}
protected
void
Application_EndRequest(Object sender, EventArgs e)
{
System.DateTime startTime
=
(System.DateTime)Application[
"
StartTime
"
];
System.DateTime endTime
=
System.DateTime.Now;
System.TimeSpan ts
=
endTime
-
startTime;
Response.Write(
"
页面执行时间:
"
+
ts.Milliseconds
+
"
毫秒
"
);
}
查看全文
相关阅读:
状态压缩+枚举 UVA 11464 Even Parity
数学/思维 UVA 11300 Spreading the Wealth
贪心 UVA 11729 Commando War
二分专题
二分图判定+点染色/并查集 BestCoder Round #48 ($) 1002 wyh2000 and pupil
数学 Codeforces Round #219 (Div. 2) B. Making Sequences is Fun
贪心 Codeforces Round #191 (Div. 2) A. Flipping Game
DP Codeforces Round #FF (Div. 1) A. DZY Loves Sequences
递推 Codeforces Round #186 (Div. 2) B. Ilya and Queries
递推DP Codeforces Round #260 (Div. 1) A. Boredom
原文地址:https://www.cnblogs.com/index/p/40798.html
最新文章
codeforce 600C
codeforce 600A
UVALIVE 3026 Period
2015长春 HDU 5534 Partial Tree
uva11732 strcmp() Anyone?
2015长春 HDU 5531 Rebuild
(Trie) uvalive 3942 Remember the word
ZOJ校赛——BFS——Superbot
ZOJ校赛——DFS+暴力——Valid Pattern Lock
POJ2559——DP——Largest Rectangle in a Histogram
热门文章
DP——数的计数
DP+数学——计算直线的交点数
DP——免费馅饼
DP——地道战
DP——马棚问题
DP——过河卒
BFS Codeforces Beta Round #94 (Div. 2 Only) C. Statues
构造 Codeforces Round #135 (Div. 2) B. Special Offer! Super Price 999 Bourles!
最短路 Codeforces Round #103 (Div. 2) D. Missile Silos
贪心 Codeforces Round #135 (Div. 2) C. Color Stripe
Copyright © 2011-2022 走看看