CGAL有内置的时间器 #include <CGAL/Timer.h>Timer t;t.start();//...算法运行std::cout << t.time() << " sec." << std::endl; //秒