摘要: C++11 中的stdfunction和stdbind https://www.jianshu.com/p/f191e88dcc80 阅读全文
posted @ 2021-05-05 15:36 不知云深处 阅读(52) 评论(0) 推荐(0) 编辑
摘要: C++11线程睡眠的方式 std::this_thread::sleep_for(std::chrono::seconds(3)); //休眠三秒 std::this_thread::sleep_for(std::chrono:: milliseconds (100)); //休眠100毫秒 阅读全文
posted @ 2021-04-30 17:36 不知云深处 阅读(3039) 评论(0) 推荐(0) 编辑
摘要: #include<chrono> using namespace std::chrono; class CELLTimestamp { public: CELLTimestamp() { update(); } ~CELLTimestamp() {} void update() { _begin = 阅读全文
posted @ 2021-04-26 15:08 不知云深处 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/kancy/p/13282009.html 常用方法:把消息数据分成消息头和消息体,消息头带消息的长度,接收方收到后根据消息头中的长度解析数据。 阅读全文
posted @ 2021-04-13 14:07 不知云深处 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Linux的命令 查看ubuntu系统是32位的还是64位的:getconf LONG_BIT luni@ubuntu:~/Project/src/cmakedemo$ getconf LONG_BIT 64 查看系统信息:lsb_release -a luni@ubuntu:~/Project/s 阅读全文
posted @ 2021-01-29 16:55 不知云深处 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 在 linux 下使用 CMake 构建应用程序 https://www.ibm.com/developerworks/cn/linux/l-cn-cmake/index.html CMake 简介 CMake 是一个跨平台的自动化建构系统,它使用一个名为 CMakeLists.txt 的文件来描述 阅读全文
posted @ 2021-01-29 15:30 不知云深处 阅读(497) 评论(0) 推荐(0) 编辑
摘要: protobuf 官网: https://developers.google.cn/protocol-buffers/ https://github.com/protocolbuffers/protobuf/releases Linux下下载 wget https://github.com/prot 阅读全文
posted @ 2020-12-11 11:11 不知云深处 阅读(937) 评论(1) 推荐(0) 编辑
摘要: thrift 官网: https://thrift.apache.org Linux下下载 wget https://mirror.bit.edu.cn/apache/thrift/0.13.0/thrift-0.13.0.tar.gz 安装相关的依赖包 sudo apt-get install a 阅读全文
posted @ 2020-11-10 19:45 不知云深处 阅读(688) 评论(0) 推荐(0) 编辑
摘要: Thriftpy Thriftpy是饿了么根据Apache Thrift(RPC)协议标准,使用纯Python实现的用于构建内部SOA框架的基础组件,Thriftpy目前已开源, Thriftpy代码在github上托管,项目地址为https://github.com/eleme/thriftpy 阅读全文
posted @ 2020-11-03 15:11 不知云深处 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 对python程序代码做计时统计 #-*-coding:utf-8-*- #@author :vict #@Time :2020-11-02 17:01 #@File :tmie_count #@software :PyCharm # 统计耗时 from time import clock from 阅读全文
posted @ 2020-11-02 17:15 不知云深处 阅读(317) 评论(0) 推荐(0) 编辑