1 Star 0 Fork 0

tom/cpp-taskflow

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
seq.cpp 430 Bytes
一键复制 编辑 原始数据 按行查看 历史
tsung-wei-huang 提交于 2020-01-13 13:48 +08:00 . updated benchmark page
#include "matrix.hpp"
// wavefront computation
void wavefront_seq() {
for( int i=0; i<MB; ++i){
for( int j=0; j<NB; ++j) {
block_computation(i, j);
}
}
}
std::chrono::microseconds measure_time_seq() {
auto beg = std::chrono::high_resolution_clock::now();
wavefront_seq();
auto end = std::chrono::high_resolution_clock::now();
return std::chrono::duration_cast<std::chrono::milliseconds>(end - beg);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/tomgee/cpp-taskflow.git
git@gitee.com:tomgee/cpp-taskflow.git
tomgee
cpp-taskflow
cpp-taskflow
master

搜索帮助