搜索资源列表
-
0下载:
C计时程序源代码
void mytime1()
{
static LARGE_INTEGER startTime
QueryPerformanceCounter(&startTime)
static LARGE_INTEGER timerFrequency -time C source code void mytime1 () (static LARGE_INTEGER startTime QueryPerformanceCounter (
-
-
0下载:
C计时程序源代码
void mytime1()
{
static LARGE_INTEGER startTime
QueryPerformanceCounter(&startTime)
static LARGE_INTEGER timerFrequency
QueryPerformanceFrequency(&timerFrequency)
/////////////***你要计时的程序-time C source code void mytim
-
-
0下载:
精确到1us的定时器。使用QueryPerformanceCounter()函数实现
适用于实时控制环境-accurate to the timer. Use QueryPerformanceCounter () functions applicable to real-time control environment
-
-
0下载:
这个频率与硬件和操作系统都可能有关。利用 API 函数 QueryPerformanceFrequency 可以得到
这个定时器的频率。利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。根据
要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。在循环里用
QueryPerformanceCounter 不停的读出定时器值, 一直到经过了指定周期数再结束循环, 就达到-the frequency with hardwa
-
-
0下载:
可以通过各种不同的函数来获取时间,且时间精度各不相同如使用QueryPerformanceFrequency()和QueryPerformanceCounter()来进行高精度定时
-
-
0下载:
用VC++编程,比较三种定时器——SetTimer、timeSetEvent、、QueryPerformanceCounter、GetTickCount的在精度上的差别-Using VC++ programming, comparing three types of timers- SetTimer, timeSetEvent,, QueryPerformanceCounter, GetTickCount the difference in accuracy
-
-
0下载:
使用QueryPerformanceCounter()函数实现 精确定时us级别-itis good
-
-
0下载:
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (10000个测试元素),并输出到文件中。
分别执行快速排序算法和交换排序算法对测试数据排序,并输出到不同的文件中。
使用较为精确的QueryPerformanceCounter和QueryPerformanceFrequency等函数记录算法耗时,精确到毫秒,以便更好地进行算法耗时比较。
分析两种不同算法,有针对性地设计与调整测
-
-
0下载:
.NET设计规范.NET约定惯用法与模式-Stopwatch class is a managed wrapper for Win32 QueryPerformanceCounter and QueryPerformanceFrequency APIs. It provides a simple API for high-precision and high-resolution measurements of elapsed time. The APIs are commonly used f
-
-
0下载:
程序列出所有的计时方法和计时应用,WM_TIMER、Sleep()、利用COleDateTime类和COleDateTimeSpan类、利用GetTickCount()函数、利用 timeGetTime()函数、利用 timeSetEvent()函数和使用QueryPerformanceFrequency()和QueryPerformanceCounter()函数实现高精度定时-Program lists all of the timing method and timing applicati
-
-
0下载:
循环头 等待尾语句,若不符合条件则发回循环直到符合就往后运行
QueryPerformanceCounter(lgTick2) // 获得系统频率记数器的震荡次数
-Loop waiting for the end of the first statement, then do not meet the conditions found on the back loop until the next run QueryPerformanceCounter (lgTick2) // ge
-
-
0下载:
基于Windows MFC的高精度计时代码,方便需要精确计时的朋友。CTimer-Using QueryPerformanceFrequency and QueryPerformanceCounter to perform high timing precision on windows platform.
-
-
3下载:
vb高精度计时,采用QueryPerformanceFrequency、QueryPerformanceCounter API函数读取系统频率和计数,计算出时间,精度很高。- VB high-precision timing, using QueryPerformanceFrequency, QueryPerformanceCounter API function to read the system frequency and count, calculate the time, high a
-