检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]油气资源与勘探技术教育部重点实验室(长江大学),武汉430100 [2]长江大学地球物理与石油资源学院,武汉430100 [3]长江大学计算机科学学院,湖北荆州434023
出 处:《电脑编程技巧与维护》2013年第20期6-7,14,共3页Computer Programming Skills & Maintenance
基 金:国家自然科学基金项目(40774073)资助
摘 要:常规的时间检测方法,在Windows的CPU时间片轮转多任务分配机制下,无法准确检测程序中算法的执行时间。为精确检测程序中算法的执行时间,通过分析程序运行环境的特点,说明不同时间测试方法的优缺点,并给出代码示例,对应提出了适用于.NET环境的时间测试方法。应用此方法,通过对数值积分算法的时间检测得出多组数据。对比结果表明,此方法较常规方法检测所得的时间更为准确,能为精确分析和评价算法的执行效率提供有效可靠的参考。Regular time detection methods can not accurately detect the program algorithm execution time when under Windows environment that CPU time slice rotates multi-tasking allocation mechanism. In order to detect the algorithm exe- cution time of the program accurately, by analyzing the characteristics of the program operating environment, to illustrate ad- vantages and disadvantages of different time test methods, and gives code examples. The article corresponds to propose a time test method for. NET environment, as an application of this method, by numerical integration algorithm's time detection to draw multiple sets of data. Comparing the results, it showed that: compared with the conventional method, this method is more accurate, and it can be able to provide efficient and reliable reference for analyzing and evaluating the efficiency of the algorithm accurately.
关 键 词:时间测试 算法效率评价 运行时间 CPU时间 NET环境
分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.147