使用方法:
template <typename T>
void meansure(T&& func){
//应用用来计时的命名空间,该命名空间包含在std中
using namespace std::Chrono;
//开始计时
auto start = system_clock::now();
duration<double> diff = system_clock::now() - start;
func();
cout<<"elapsed :"<< dif.count<<" s"<<endl;
}