当前位置:
首页
资源下载

搜索资源 - queryPerformanceCounter
搜索资源列表
-
0下载:
一.高精度延时, 是 CPU 测速的基础
Windows 内部有一个精度非常高的定时器, 精度在微秒级, 但不同的系统这个定时器的频率不同, 这个频率与硬件和操作系统都可能有关。
利用 API 函数 QueryPerformanceFrequency 可以得到这个定时器的频率。
利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。
根据要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。
在循环里用 QueryP
-
-
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下载:
2D的贝塞尔曲线几种画法(2D_curve).
用到QueryPerformanceCounter及QueryPerformanceFrequency的帧速计数.-2D Bezier curves of several paintings (2D_curve). Use QueryPerfor manceCounter frame and QueryPerformanceFrequency speed counts.
-
-
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
-
-
4下载:
欧姆龙最新PLC CPH1系列hostlink应用例子,用于编写上位机控制软件,通过串口直接控制PLC。用vc编写,方便转化为其他语言。
包括内容:
1:自封装串口类(来源于网络,做了适当修改)
2:多线程,线程间同步,通讯等。
3:生产者消费者模型应用,环形缓冲队列应用
4:欧姆龙hostlink通讯通讯同步处理,FCS校验值计算,各种hostlink指令使用示例。
5:线程消息处理类封装。
6:windows程序中带console调试界面,可把调试信息输出到控制台
-
-
0下载:
可以通过各种不同的函数来获取时间,且时间精度各不相同如使用QueryPerformanceFrequency()和QueryPerformanceCounter()来进行高精度定时
-
-
0下载:
用C编写的微秒级精确延时DLL函数库,通过调用kernel32.dll的QueryPerformanceFrequency()、QueryPerformanceCounter()函数实现。
-
-
0下载:
基于Windows MFC的高精度计时代码,方便需要精确计时的朋友。
CTimer-Using QueryPerformanceFrequency and QueryPerformanceCounter to perform high timing precision on windows platform.
-
-
0下载:
用VC++编程,比较三种定时器——SetTimer、timeSetEvent、、QueryPerformanceCounter、GetTickCount的在精度上的差别-Using VC++ programming, comparing three types of timers- SetTimer, timeSetEvent,, QueryPerformanceCounter, GetTickCount the difference in accuracy
-
-
7下载:
精密定时器集合:VB版
■ SetTimer(多Timer):是使用SetTimer()和回调函数产生的Timer,与VB6中定时器控件效果一样,只是用API实现而已,不爱用控件的朋友可能会喜欢
■ Timer大比拼(CSDN):是CSDN网友提供的测试各种Timer的代码:QueryPerformanceCounte() 多媒体定时器;和VB6定时器控件。测试时,可以看到3种定时器的区别。多媒体定时器和QueryPerformanceCounte()都是较好的选择.
-
-
0下载:
使用QueryPerformanceCounter()函数实现 精确定时us级别-itis good
-
-
0下载:
快速排序与交换排序算法比较
在Visual C++中建立一个单文档Windows应用程序,并实现下述功能:
运用随机函数自动生成一定规模的测试数据 (10000个测试元素),并输出到文件中。
分别执行快速排序算法和交换排序算法对测试数据排序,并输出到不同的文件中。
使用较为精确的QueryPerformanceCounter和QueryPerformanceFrequency等函数记录算法耗时,精确到毫秒,以便更好地进行算法耗时比较。
分析两种不同算法,有针对性地设计与调整测
-
-
0下载:
OSBench measures key operating system timings as closely as
possible. All tests use the QueryPerformanceCounter (QPC) to get
time stamps. The frequency of the counter and the overhead of
calling this function must be taken into account when
a
-
-
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
-