问题:
ubuntu中使用auto t1 = chrono::high_resolution_clock::now();等计时,windows跑没问题,ubuntu上报错:error: ‘chrono’ has not been declared
解决方法:
加上
#include <algorithm>
#include <chrono>
可以参考:
https://github.com/tavildar/Polar/issues/1
问题:
ubuntu中使用auto t1 = chrono::high_resolution_clock::now();等计时,windows跑没问题,ubuntu上报错:error: ‘chrono’ has not been declared
解决方法:
加上
#include <algorithm>
#include <chrono>
可以参考:
https://github.com/tavildar/Polar/issues/1