Changeset 872 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Oct 18, 2012 11:36:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/SANS_Utilities.ipf
r693 r872 18 18 // 29MAR07 SRK 19 19 // 20 21 ///// 22 // @ IgorExchange 23 //TicToc 24 //Posted April 16th, 2009 by bgallarda 25 // ¥ in Programming 6.10.x 26 27 function tic() 28 variable/G tictoc = startMSTimer 29 end 30 31 function toc() 32 NVAR/Z tictoc 33 variable ttTime = stopMSTimer(tictoc) 34 printf "%g seconds\r", (ttTime/1e6) 35 killvariables/Z tictoc 36 end 37 38 39 Function testTicToc() 40 41 tic() 42 variable i 43 For(i=0;i<10000;i+=1) 44 make/O/N=512 temp = gnoise(2) 45 FFT temp 46 Endfor 47 killwaves/z temp 48 toc() 49 End 20 50 21 51
Note: See TracChangeset
for help on using the changeset viewer.