摘要: /// summary/// 计算程序的运行时间/// /summaryclass StopWatch{ private int mintStart; public void start() { mintStart = Environment.TickCount; } public long elapsed() { return Environment.TickCount - mintStart; } } 在程序的开始和结尾处分别加上StopWatch sw = new StopWatch(); sw.start(); 和sw.elapsed();sw.elapsed();的返回值就是 阅读全文
posted @ 2011-01-26 14:55 sn_wolf 阅读(1489) 评论(1) 推荐(0) 编辑