WinCE下测试程序运行时间的方法
2011-09-09 09:19
525 查看
代码如下
[DllImport("Coredll.dll", EntryPoint = "GetTickCount")]
private static extern int GetTickCount();
int dstart = GetTickCount();
//这里填写要执行的代码
int dend = GetTickCount();
string strtime = (dend - dstart).ToString();
strtime += "毫秒";
MessageBox.Show(strtime);
[DllImport("Coredll.dll", EntryPoint = "GetTickCount")]
private static extern int GetTickCount();
int dstart = GetTickCount();
//这里填写要执行的代码
int dend = GetTickCount();
string strtime = (dend - dstart).ToString();
strtime += "毫秒";
MessageBox.Show(strtime);
相关文章推荐
- 【C++】C++中几种测试程序运行时间的方法
- C++中几种测试程序运行时间的方法
- 测试程序运行时间的三种方法
- java基础巩固系列(十一):java测试程序运行时间的两种方法
- 测试某一段程序运行时间的方法
- Linux下测试程序运行时间方法
- C#程序运行时间的测试方法
- C++中几种测试程序运行时间的方法
- 测试程序运行时间的方法
- 程序运行时间测试
- C语言中测试程序运行时间
- spring3.0框架检测方法运行时间测试(转)
- 如何测试程序在DSP上的运行时间?
- C++获取当前时间和计算程序运行时间的方法
- 测试程序代码运行时间源代码
- C++获取当前时间和计算程序运行时间的方法
- 测试 js 方法运行时间
- 三种计算c#程序运行时间的方法
- oprofile 使用步骤 测试程序中各函数运行时间
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法