摘要: 引用: http://www.tuicool.com/articles/aeiYz2v vcpkg 是微软 C++ 团队开发的在 Windows 上运行的 C/C++ 项目包管理工具,可以帮助您在 Windows 平台上获取 C 和 C++ 库. vcpkg 自身也是使用 C++ 开发的 (而其他的 阅读全文
posted @ 2017-03-19 17:58 jiftle 阅读(3534) 评论(0) 推荐(0) 编辑
摘要: (1)、localtime用来获取系统时间,精度为秒 函数原型为struct tm *localtime(const time_t * timep) 需要包含头文件:#include <time.h>struct tm的结构为 int tm_sec; /* 秒 – 取值区间为[0,59] */ in 阅读全文
posted @ 2017-03-19 14:16 jiftle 阅读(9544) 评论(0) 推荐(0) 编辑
摘要: 俗话说,打得一手好log才是一个优秀的程序员。 **打log的目的是为了迅速排错或在有争议时拿出证据证明自己。基于这个目的,log不在多,只要抓住一切对自己有利的信息,就可以了。** 日志框架列表 C/C++ spdlog 只需要引用头文件就可以了 [spdlog](https://github.c 阅读全文
posted @ 2017-03-19 00:35 jiftle 阅读(759) 评论(0) 推荐(0) 编辑
摘要: python 统计时间使用time模块,写日志使用logging模块,这两个都是标准模板。 测试socket使用socket模块 # 统计时间 import time start = time.time() end = time.time() stamp = end - start print "耗 阅读全文
posted @ 2017-03-19 00:23 jiftle 阅读(1698) 评论(0) 推荐(0) 编辑