NX9の+ 1。VS2012
2
3の#include <uf.h>
4の#include <uf_modl.h>。
5。
6。
7。 UF_initialize();
8
。9 //スタートタイマ
10 UF_timer_tタイマ、
11 UF_begin_timer(&タイマー) 12は 13である 14 //作成しますブロック 15 UF_FEATURE_SIGNサイン= ; UF_NULLSIGN [3] 16ダブルcorner_ptの= {0.0、0.0、0.0 [3]} ;. 17のchar * edge_lenの= { "100"、 "100"、 "100" }; 18 tag_t blk_obj_id =でNULL_TAG。 UF_MODL_create_block1 19(サイン、corner_pt、edge_len、&blk_obj_id); //端20は21であるが22クロックされているUF_timer_values_t ValueTimer; 23 UF_end_timer(タイマー、あります&ValueTimer); 24 25 26 //打印信息27チャー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 シーザー36 2018年10月21日
NX二次開発-UFUNのタイミング機能UF_end_timer
おすすめ
転載: www.cnblogs.com/nxopen2018/p/11099462.html
おすすめ
ランキング