NX11+VS2013

     #include <uf.h>
#include <uf_modl.h>
#include <uf_ui.h>
#include <time.h> UF_initialize(); clock_t start = clock();//计时开始 //创建块
UF_FEATURE_SIGN sign = UF_NULLSIGN;
double corner_pt[] = { 0.0, 0.0, 0.0 };
char * edge_len[] = { "", "", "" };
tag_t blk_obj_id = NULL_TAG;
UF_MODL_create_block1(sign, corner_pt, edge_len, &blk_obj_id); clock_t finish = clock();//结束计时 //打印信息
char msg[];
lw->Open();
sprintf(msg, "共耗时:%f", (double)(finish - start) / CLOCKS_PER_SEC);
lw->WriteLine(msg); UF_terminate();

2019年2月27日附加

     //转换打印
int sec = (int)(finish - start) / CLOCKS_PER_SEC;
char msg[];
sprintf_s(msg, "共耗时:%.2d时:%.2d分:%.2d秒", sec / , (sec - (sec / * )) / , sec - (sec / * ) - (sec - (sec / * )) / * );
AfxMessageBox(msg);

最新文章

  1. Socket聊天程序——服务端
  2. Ubuntu 14 Trusty安装hue
  3. VIM-Sed常用的一些记录。。。逐渐学习。。
  4. 【原创】JAVA并发编程——Callable和Future源码初探
  5. CodeIgniter框架下载辅助函数的一个小bug
  6. echo
  7. Notes of the scrum meeting(2013/10/23)
  8. Sqoop 命令
  9. POJ-3714 Raid 平面最近点对
  10. HTML5增加的几个新的标签
  11. 解决Unity3d 4.3 动画系统带来的烦恼
  12. cJSON 库的使用和优化
  13. SpringMVC第六篇【校验、统一处理异常】
  14. Hadoop序列化-流量汇总案例
  15. NEST - 返回部分文档
  16. 网卡最大传输单位MTU和巨型帧(Jumbo frame)设置
  17. lij IDEA项目包分层结构显示设置
  18. python递归,装饰器,函数, 高阶函数
  19. ubuntu14.04下开启ssh服务
  20. mysql数据导入导出方法总结

热门文章

  1. CentOS7.6 部署asp.net core2.2 应用
  2. Centos剔除在线用户
  3. go结构体上的函数
  4. J2EE学习篇之--JDBC详解
  5. swiper 窗口宽度变化,页面宽度高度变化 导致自动滑动 解决方案
  6. CDH5..4.7+phoenix实现查询HBase异常:java.sql.SQLException: ERROR 1102 (XCL02): Cannot get all table regions
  7. Laravel/php 一些调试技巧
  8. python语言和R语言实现机器学习算法
  9. 移动端新建html页面
  10. 如果通过cookies和localStorage取值?