Windows上几个常用的获取时间戳函数的效率比较
时间:2022-07-05 21:51:46
本文测试了下Windows上几个获取时间戳的函数效率Windows上几个获取时间戳函数的效率比较
今天无事,测试了下Windows上几个获取时间戳的函数效率
机器性能:
CPU I7 2600K 未超频
测试1亿次调用
CRT 的Time()函数耗时在1秒左右
Win API 的GetTickCount() 在300毫秒左右,GetTickCount64() 在500毫秒左右
Wimm.lib 的timeGetTime()在800毫秒左右
//这段代码的耗时测试在8秒左右
1
inline unsigned __int64 GetCycleCount()
2
{
3
__asm _emit 0x0F
4
__asm _emit 0x31
5
}
标签:Windows,获取时间戳函数,效率比较
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何使用Mac电脑预览程序在图片上涂鸦?
2022-02-06 02:01:39
![](https://img.aspxhome.com/file/2023/8/a203148_0s.jpeg)
Sparkle for Mac如何设置网页内容的颜色
2022-05-10 19:56:20
![](https://img.aspxhome.com/file/2023/4/a212704_0s.png)
如何在word文档中输入人民币符号¥¥和美元货币符号$?一、单横线人民币符号三、美元符号
2022-08-04 04:53:50
![](https://img.aspxhome.com/file/2023/2/34212_0s.png)
word如何设置自动排版
2022-01-22 10:50:20
Word文档隐藏文字怎么显示?Word显示隐藏文字的方法
2023-07-31 12:54:05
![](https://img.aspxhome.com/file/2023/8/30958_0s.png)
Word文档怎么快速对齐所有图片
2022-08-10 09:19:41
![](https://img.aspxhome.com/file/2023/1/31191_0s.png)
Win11软件图标上的小盾牌什么意思
2023-10-28 20:42:22
![](https://img.aspxhome.com/file/2023/27/a235511_0s.jpeg)
Xtrafinder怎么用?
2022-01-22 04:26:46
![](https://img.aspxhome.com/file/2023/9/a213469_0s.png)
WinXP系统Netware客户服务禁用了欢迎屏幕的原因及解决办法
2023-02-10 09:58:16
![](https://img.aspxhome.com/file/2023/28/a244180_0s.jpg)
Mac上手这么久,你知道这5个macOS小技巧吗?
2023-03-21 23:39:13
![](https://img.aspxhome.com/file/2023/6/a211446_0s.gif)
使用Excel函数来按月份对数据进行汇总的方法
2023-09-01 03:58:47
在Word文档中怎么输入复杂化学方程式
2023-11-29 08:56:18
![](https://img.aspxhome.com/file/2023/7/17987_0s.jpg)
则按下 如果整行或整列都是空单元格
2022-02-03 23:49:42
WPS幻灯片字体永久嵌入怎么搞
2023-08-10 01:25:38
![](https://img.aspxhome.com/file/2023/8/a170058_0s.png)
Win11桌面水印怎么去除 Win11水印去除方法
2023-09-25 12:33:26
![](https://img.aspxhome.com/file/2023/27/a236141_0s.png)
excel如何创建表格查询系统
2022-07-19 13:56:54
Win10专业版启机no bootable devices found提示怎么解决?
2023-01-05 23:12:44
![](https://img.aspxhome.com/file/2023/26/a222590_0s.png)
首先选中要替换的多个单元格
2022-10-26 06:28:46
如何解决iCloud空间被Mac桌面和文稿占用太多的问题?
2023-01-17 21:57:16
![](https://img.aspxhome.com/file/2023/3/a207653_0s.jpeg)
excel中怎么进行自动换行
2022-10-23 05:03:49