Function zmesh::cost_time

Function Documentation

long long zmesh::cost_time(std::function<void()> f)

计算程序消耗时间(以ms为单位), 并返回. 可以用来统计循环中某一段代码消耗时间总和