摘要:
(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
阅读(9719)
评论(0)
推荐(0)
摘要:
俗话说,打得一手好log才是一个优秀的程序员。 **打log的目的是为了迅速排错或在有争议时拿出证据证明自己。基于这个目的,log不在多,只要抓住一切对自己有利的信息,就可以了。** 日志框架列表 C/C++ spdlog 只需要引用头文件就可以了 [spdlog](https://github.c 阅读全文
posted @ 2017-03-19 00:35
jiftle
阅读(788)
评论(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
阅读(1731)
评论(0)
推荐(0)

浙公网安备 33010602011771号