当前位置:网站首页>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
边栏推荐
- 数组名是首元素地址吗?
- 数据表的约束以及设计、联合查询——8千字攻略+题目练习解答
- [sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
- Text batch replacement function
- 可载100人!马斯克发布史上最强“星际飞船” !最早明年上火星!
- 表格插入行内公式后,单元格失去焦点
- [regular expression] match the beginning and end
- Multimap case
- Network principle (2) -- network development
- DRF学习笔记(二):数据反序列化
猜你喜欢

无线网络分析有关的安全软件(aircrack-ng)

初识结构体

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

Push down of spark filter operator on parquet file

IP protocol of network layer

Binder initialization process
![[sword finger offer] interview question 41: median in data flow - large and small heap implementation](/img/c3/7caf008b3bd4d32a00b74f2c508c65.png)
[sword finger offer] interview question 41: median in data flow - large and small heap implementation

NPM install error unable to access

Network principle (1) - overview of basic principles

Troubleshooting the slow startup of spark local programs
随机推荐
携手SiFive,格兰仕进军半导体领域!两款自研芯片曝光
Openwrt增加对 sd card 支持
Is the array name the address of the first element?
[sword finger offer] interview question 39: numbers that appear more than half of the time in the array
CAS比较交换的知识、ABA问题、锁升级的流程
/Dev/loop1 takes up 100% of the problem
busybox login: can't execute '/bin/bash': No such file or directory 解决方法
台积电的反击:指控格芯侵犯25项专利,并要求禁售!
Network device hard core technology insider router Chapter 22
三星关闭在中国最后一家手机工厂
[正则表达式] 单个字符匹配
Learn parquet file format
突发!海康/大华/商汤/旷视/依图/科大讯飞等28家中国实体被美列入黑名单
Is low code the future of development? On low code platform
C语言:扫雷小游戏
[regular expression] match the beginning and end
[sword finger offer] interview question 49: ugly number
语音直播系统——提升云存储安全性的必要手段
Implementation of spark lazy list files
MySQL表数据的增删查改