! ! TITLE: tstart.mac (MANAGEMENT) ! ! ! This macro is used to measure the time duration it takes ANSYS to do ! a block of commands. ! ! The tstart/tstop pair of macro commands work just like a stopwatch. ! At the start of a block of code call "tstart" and then at the end call ! tstop. The elapsed time since tstart was called is then displayed. ! ! The output gives the actual time the CPU spent on running ANSYS code and ! the elapsed wall clock time. ! ! ! tstart ! *get,prkey_,active,0,prkey /nopr *get,_start_w,active,0,time,wall *get,_start_c,active,0,time,cpu /out,tstart,out *vwrite,_start_w ('*SET,_start_w,',E20.8) *vwrite,_start_c ('*SET,_start_c,',E20.8) /out *if,prkey_,eq,1,then /go *endif