大佬教程收集整理的这篇文章主要介绍了c – g vs intel / clang参数传递顺序?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
#include <iostream> #include <chrono> inline void test( const std::chrono::high_resolution_clock::time_point& first,const std::chrono::high_resolution_clock::time_point& second) { std::cout << first.time_since_epoch().count() << std::endl; std::cout << second.time_since_epoch().count() << std::endl; } int main(int argc,char* argv[]) { test(std::chrono::high_resolution_clock::Now(),std::chrono::high_resolution_clock::Now()); return 0; }
你必须多次运行它,因为有时,没有明显的区别.但是当第一次和第二次评估的时间之间存在明显差异时,结果如下:@H_@L_673_4@_5@
1363376239363175 1363376239363174
以及英特尔和clang下的以下内容:@H_@L_673_4@_5@
1363376267971435 1363376267971436
两者都是允许的.引用标准(§8.3.6):@H_@L_673_4@_5@
以上是大佬教程为你收集整理的c – g vs intel / clang参数传递顺序?全部内容,希望文章能够帮你解决c – g vs intel / clang参数传递顺序?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。