c++
start223
这个作者很懒,什么都没留下…
展开
-
c++计时函数
#include <chrono>using namespace std::chrono;int main(int argc,char** argv){ auto startTime = high_resolution_clock::now(); auto endTime = high_resolution_clock::now(); cout<<"用时: "<<duration_cast<microseconds>(endTime原创 2021-09-16 11:13:29 · 200 阅读 · 1 评论 -
openMP配置(qmake&cmake)
qmakeQMAKE_CXXFLAGS+=/openmpCMakeListsfind_package(OpenMP)if(OpenMP_CXX_FOUND) target_link_libraries(MyTarget PUBLIC OpenMP::OpenMP_CXX)endif()原创 2021-09-16 09:51:29 · 539 阅读 · 0 评论