当前位置: 首页 > news >正文

做网站需要ui设计吗网站内容维护费用

做网站需要ui设计吗,网站内容维护费用,推广该怎么做,成都专业网站建设公司1. 关键词2. 问题3. 解决思路4. 代码实现 4.1. timecount.h4.2. timecount.cpp 5. 测试代码6. 运行结果7. 源码地址 1. 关键词 C 时间处理 统计函数运行时间 跨平台 2. 问题 C如何简单便捷地实现“函数运行时间的统计”功能#xff1f; 3. 解决思路 类的构造函数#x…1. 关键词2. 问题3. 解决思路4. 代码实现 4.1. timecount.h4.2. timecount.cpp 5. 测试代码6. 运行结果7. 源码地址 1. 关键词 C 时间处理 统计函数运行时间 跨平台 2. 问题 C如何简单便捷地实现“函数运行时间的统计”功能 3. 解决思路 类的构造函数会在对象初始化的时候被调用。类的析构函数会在对象销毁的时候被调用。局部对象的生命周期对象实例化也就是初始化时开始退出作用域时结束。 4. 代码实现 4.1. timecount.h #pragma once#include cstdint #include atomic #include stringnamespace cutl {/*** brief A simple time counter class to measure the execution time of a function.**/class timecount{public:/*** brief Construct a new timecount object* The constructor will record the begin time of the function calling.* param func_name*/timecount(const std::string func_name);/*** brief Destroy the timecount object* The desctructor will record the end time of the function calling and calculate the execution time.*/~timecount();private:std::string func_name_;std::atomicuint64_t start_time_;};} // namespace4.2. timecount.cpp #include timecount.h #include timeutil.h #include strfmt.h #include inner/logger.hnamespace cutl {timecount::timecount(const std::string func_name): func_name_(func_name){start_time_ clocktime(timeunit::us);}timecount::~timecount(){auto end_time clocktime(timeunit::us);auto duration end_time - start_time_;auto text [timecount] func_name_ used fmt_timeduration_us(duration);CUTL_LOGGER.info(, text);} } // namespace5. 测试代码 #pragma once#include iostream #include timecount.h #include common.hppvoid TestTimecount() {PrintTitle(timecount);cutl::timecount tcount(TestTimecount);std::cout TestTimecount begin std::endl;std::this_thread::sleep_for(std::chrono::seconds(1));std::cout TestTimecount end std::endl; }6. 运行结果 timecount TestTimecount begin TestTimecount end [2024-05-19 22:34:35.853][I]]0x7ff844a9b100](cutl) [timecount] TestTimecount used 01s.004955us7. 源码地址 更多详细代码请查看本人写的C 通用工具库: common_util, 本项目已开源代码简洁且有详细的文档和Demo。
http://www.dnsts.com.cn/news/50538.html

相关文章:

  • 做网站策划书吧手机制作app模板
  • 镇海区住房建设网站怎么查wordpress wap版
  • 海伦市网站上海最专业的网站建设公司哪家好
  • 网站没排名的原因建设网站的目的是为了的英语
  • 影响网站权重敬请期待的文案
  • 公司网站开发与维护wordpress用户名中文
  • 建站平台外贸wordpress清理网站缓存
  • 漳州 外贸网站建设 SEOwordpress post编辑
  • 网站建设招标文件技术部分服装定制品牌有哪些
  • 企业网站建设费用预算公司网站制作平台
  • 做期货在哪个网站查资料贵州有网站的企业
  • 北京今朝装饰设计有限公司seo网站推广服务
  • 婚恋网站女代我做彩票想学做网站学什么编程语言
  • 哪家购物网站建设好网站seo推广排名
  • qq快速登录入口网站品牌词如何优化
  • 电子商务搭建网站人力资源公司起名大全
  • 外贸英文网站怎么开个网店卖东西
  • 东莞网上推广汕头百度快速优化排名
  • 企业网站制作套餐网站建设需要学多久
  • tech域名可以做网站吗存量房交易网站建设
  • 网站服务器租赁你的知识宝库wordpress移动自媒体
  • 网站开发心得体会做网站配什么绿色好看些
  • 网站建设业务开展方案黄页营销网站
  • 网站网页设计哪个好东莞城乡建设
  • 公司做网站有什么用百度人工优化
  • wordpress主题的网站特产网站建设策划书
  • 营销网站建设企业云南百度小程序开发公司
  • 便宜网站开发培训数字营销的定义是
  • 有什么网站可以做微信app东莞现代建设有限公司
  • 攻击静态网站美食网页设计素材