C++
隔壁打杂的
Jason
展开
-
终端中传入的相对路径转换为绝对路径
#define MAX_BUFFER 2048inline static std::string abs_path(const char* srcpath){ std::string strAbsolutionpath = ""; char abspath[MAX_BUFFER] = {0};#ifdef _WIN32 if(_fullpath(absp原创 2017-06-19 16:36:30 · 666 阅读 · 0 评论 -
C++11 chrono全面解析(最高可达纳秒级别的精度)
[ 转载自 ](http://blog.csdn.net/qq_31175231/article/details/77923212)chrono是c++ 11中的时间库,提供计时,时钟等功能。学习chrono,关键是理解里面时间段(Durations)、时间点(Time points)的概念。1.精度:时钟节拍(时间精度):template <intmax_t N, intmax_t D转载 2017-09-20 11:36:12 · 8408 阅读 · 0 评论