未验证 提交 4db121d7 编写于 作者: W Wang Guibao 提交者: GitHub

Merge pull request #107 from PaddlePaddle/documentation

Fix ximage
...@@ -162,7 +162,8 @@ int main(int argc, char** argv) { ...@@ -162,7 +162,8 @@ int main(int argc, char** argv) {
api.thrd_initialize(); api.thrd_initialize();
while (true) { int count = 0;
while (count < 10) {
timeval start; timeval start;
gettimeofday(&start, NULL); gettimeofday(&start, NULL);
...@@ -200,7 +201,7 @@ int main(int argc, char** argv) { ...@@ -200,7 +201,7 @@ int main(int argc, char** argv) {
print_res(req, res, predictor->tag(), elapse_ms); print_res(req, res, predictor->tag(), elapse_ms);
res.Clear(); res.Clear();
usleep(50); ++count;
} // while (true) } // while (true)
api.thrd_finalize(); api.thrd_finalize();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册