代码拉取完成,页面将自动刷新
同步操作将从 charlieshu/Algorithms 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include <iostream>
//time(NULL)
#include <time.h>
//gettimeofday(&time, NULL)
#include <sys/time.h>
//std::chrono::steady_clock::now()
#include <chrono>
//usleep();
#include <unistd.h>
//double_t ms
#include <cmath>
//cv::getTickCount()
using namespace std;
int main(){
//ȷ롢
cout << "****************************** t5 ******************************"<< endl;
chrono::high_resolution_clock::time_point t51 = chrono::high_resolution_clock::now();
time_t tt51 = std::chrono::high_resolution_clock::to_time_t(t51);
cout << tt51 << " seconds from 1970-01-01 00:00:00 UTC" << std::endl;
sleep(3);
cout << "--------- " << 1000 << " ms ---------- " << 1 << " s ---------" << endl;
chrono::high_resolution_clock::time_point t52 = chrono::high_resolution_clock::now();
time_t tt52 = std::chrono::high_resolution_clock::to_time_t(t52);
cout << tt52 << " seconds from 1970-01-01 00:00:00 UTC" << std::endl;
chrono::nanoseconds t5 = t52 -t51;
cout << "Time elapsed: "<< chrono::duration_cast<chrono::seconds>(t5).count()<< " seconds" << std::endl;
cout << "Time elapsed: "<< chrono::duration_cast<chrono::milliseconds>(t5).count()<< " milliseconds" << std::endl;
cout << "Time elapsed: "<< std::chrono::duration_cast<chrono::microseconds>(t5).count()<< " microseconds" << std::endl;
cout << "Time elapsed: "<< std::chrono::duration_cast<chrono::nanoseconds>(t5).count()<< " nanoseconds" << std::endl;
return 0;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。