如题
解决方案 »
- 如何让DataGrid控件的列标题自动换行
- 准备走向海外了,程序要重写,该采用哪种数据处理方案?
- 水晶报表疑惑,请各位达人帮忙分析分析.感激!
- 请教大虾:在线等)我做的VB小程序在安装时 ,提醒“当前文件 比 系统文件 过旧 过时” 之类 不知为何问题?如何解决?
- 如何让mshflexgrid ,datagrid等表格控件也支持鼠标滑轮?
- 寻找 InstallShield
- 关于 删除文件,急死我了
- 输入法是怎样制作成的
- 用过SetupBuilder Professional V1.50 和 Setup Factory 6.0.0.3 的进来看看
- 请问DataGrid问题
- 请教这句是何意思:classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="ShockwaveFlash1",谢谢!!!
- 程序运行提示非模式问题,怎么解决
starttime=timer
开始你的代码
endtime=timer
msgbox endtime-starttime(这就是代码执行的时间,秒位单位)
在nt环境, timer的表现略好, interval可设在5以上, 对更小的interval则无能为力
以上结论系编译后在6台不同配置不同os情况下得到的
刚才想到了另一个函数GetTickCount,这个函数很管用,建议楼主用它,因为是API函数,所以得先声明了。GetTickCount
The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer. If you need a higher resolution timer, use amultimedia timer or a high-resolution timer. DWORD GetTickCount(VOID)
Parameters
This function has no parameters. Return Values
The return value is the number of milliseconds that have elapsed since the system was started. Res
The following table describes the resolution of the system timer. System Resolution
Windows NT 3.5 and later The system timer runs at approximately 10ms.
Windows NT 3.1 The system timer runs at approximately 16ms.
Windows 95 and later The system timer runs at approximately 55ms.
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days. Windows NT: To obtain the time elapsed since the computer was started, look up the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.