当前位置:网站首页>profileapi. h header
profileapi. h header
2022-07-27 16:07:00 【The heart is like glass】
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
边栏推荐
- [sword finger offer] interview question 52: the first common node of two linked lists - stack, hash table, double pointer
- C language: string function and memory function
- 数据表的约束以及设计、联合查询——8千字攻略+题目练习解答
- C language: data storage
- Understand │ what is cross domain? How to solve cross domain problems?
- CAS compares the knowledge exchanged, ABA problems, and the process of lock upgrading
- 初识MySQL数据库
- Summary of network device hard core technology insider router (Part 2)
- [sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
- Using Lombok results in the absence of parent class attributes in the printed toString
猜你喜欢

Insert sort directly

leetcode234题-简单方法判断回文链表
![[sword finger offer] interview question 45: arrange the array into the smallest number](/img/d1/e2e21c95ecf5b8e3854f134cc47228.png)
[sword finger offer] interview question 45: arrange the array into the smallest number

判断数据的精确类型

DRF学习笔记(一):数据序列化
![[sword finger offer] interview question 50: the first character that appears only once - hash table lookup](/img/72/b35bdf9bde72423410e365e5b6c20e.png)
[sword finger offer] interview question 50: the first character that appears only once - hash table lookup
![[sword finger offer] interview question 42: the maximum sum of continuous subarrays -- with 0x80000000 and int_ MIN](/img/01/bbf81cccb47b6351d7265ee4a77c55.png)
[sword finger offer] interview question 42: the maximum sum of continuous subarrays -- with 0x80000000 and int_ MIN

Nacos

解决flink启动后无法正常关闭

drf使用:get请求获取数据(小例子)
随机推荐
DRF学习笔记(二):数据反序列化
To meet risc-v challenges? ARM CPU introduces custom instruction function!
Network principle (1) - overview of basic principles
profileapi.h header
openwrt 编译驱动模块(在openwrt源代码外部任意位置编写代码,独立模块化编译.ko)
Vant UI toast and dialog use
Sword finger offer 51. reverse pairs in the array
DRF学习笔记(四):DRF视图
移动端h5常见问题
[sword finger offer] interview question 50: the first character that appears only once - hash table lookup
C language: dynamic memory function
[Yunxiang book club issue 13] packaging format and coding format of audio files
台积电的反击:指控格芯侵犯25项专利,并要求禁售!
C: On function
Six capabilities of test and development
Division of entity classes (VO, do, dto)
Solve mt7620 continuous cycle uboot (LZMA error 1 - must reset board to recover)
It can carry 100 people! Musk releases the strongest "starship" in history! Go to Mars as early as next year!
Flask connects to existing tables in MySQL database
Stock account opening commission discount, stock trading account opening which securities company is good, is online account opening safe