1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 6 7 UF_initialize(); 8 9 //计时开始 10 UF_timer_t Timer; 11 UF_begin_timer(&Timer); 12 13 14 //创建块 15 UF_FEATURE_SIGN sign = UF_NULLSIGN; 16 double corner_pt[3] = { 0.0, 0.0, 0.0 }; 17 char * edge_len[3] = { "100", "100", "100" }; 18 tag_t blk_obj_id = NULL_TAG; 19 UF_MODL_create_block1(sign, corner_pt, edge_len, &blk_obj_id); 20 21 //结束计时 22 UF_timer_values_t ValueTimer; 23 UF_end_timer(Timer, &ValueTimer); 24 25 26 //打印信息 27 char msg[256]; 28 UF_UI_open_listing_window(); 29 sprintf(msg,"cpu_time:%f\nreal_time:%f", ValueTimer.cpu_time, ValueTimer.real_time); 30 UF_UI_write_listing_window(msg); 31 32 33 UF_terminate(); 34 35 Caesar 36 2018年10月21日
原文地址:https://www.cnblogs.com/nxopen2018/p/11099462.html
时间: 2024-10-06 22:26:57