当前位置:网站首页>profileapi.h header
profileapi.h header
2022-07-27 14:39:00 【心如琉璃】
This header is used by System Services. For more information, see:System Services
profileapi.h contains the following programming interfaces:
FUNCTIONS:
QueryPerformanceCounter
Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp that can be used for time-interval measurements.
Syntax:
BOOL QueryPerformanceCounter(
[out] LARGE_INTEGER *lpPerformanceCount
);
Parameters:
[out] lpPerformanceCount
A pointer to a variable that receives the current performance-counter value, in counts.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError. On systems that run Windows XP or later, the function will always succeed and will thus never return zero.
Examples
// Gets the current number of ticks from QueryPerformanceCounter. Throws an
// exception if the call to QueryPerformanceCounter fails.
static inline int64_t GetTicks()
{
LARGE_INTEGER ticks;
if (!QueryPerformanceCounter(&ticks))
{
winrt::throw_last_error();
}
return ticks.QuadPart;
}
QueryPerformanceFrequency
Retrieves the frequency of the performance counter.
link:
https://docs.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter
边栏推荐
- 线程间等待与唤醒机制、单例模式、阻塞队列、定时器
- leetcode234题-简单方法判断回文链表
- Go language slow start - package
- 携手SiFive,格兰仕进军半导体领域!两款自研芯片曝光
- DRF学习笔记(一):数据序列化
- [sword finger offer] interview question 54: the k-largest node of the binary search tree
- C语言实现字节流与十六进制字符串的相互转换
- 兆骑科创创业大赛策划承办机构,双创平台,项目落地对接
- C language: dynamic memory function
- Openwrt增加对 sd card 支持
猜你喜欢

DRF学习笔记(二):数据反序列化

Division of entity classes (VO, do, dto)

Using Lombok results in the absence of parent class attributes in the printed toString

keil 采用 makefile 实现编译

Static关键字的三种用法

Inter thread wait and wake-up mechanism, singleton mode, blocking queue, timer
![[tensorboard] oserror: [errno 22] invalid argument processing](/img/bf/c995f487607e3b307a268779ec1e94.png)
[tensorboard] oserror: [errno 22] invalid argument processing

C language: data storage

Spark 3.0 DPP implementation logic

C语言:自定义类型
随机推荐
[regular expression] single character matching
Voice live broadcast system -- a necessary means to improve the security of cloud storage
[sword finger offer] interview question 46: translating numbers into strings - dynamic programming
Constraints, design and joint query of data table -- 8000 word strategy + Exercise answers
Hj8 consolidated statement record
Binary Insertion Sort
Network device hard core technology insider router Chapter 22
[sword finger offer] interview question 39: numbers that appear more than half of the time in the array
[regular expression] match the beginning and end
Network principle (2) -- network development
[sword finger offer] interview question 41: median in data flow - large and small heap implementation
go语言慢速入门——go运算符
突破软硬壁垒,赛灵思面向开发者发布Vitis统一软件平台
接连取消安富利/文晔/世平代理权,TI到底打的什么算盘?
Talk about the index of interview questions
Stock account opening commission discount, stock trading account opening which securities company is good, is online account opening safe
多线程带来的的风险——线程安全
C语言实现字节流与十六进制字符串的相互转换
leetcode-1:两数之和
突发!海康/大华/商汤/旷视/依图/科大讯飞等28家中国实体被美列入黑名单