Changeset 51 for oup/current/Tools/Template.pas
- Timestamp:
- Dec 23, 2006, 11:16:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/Template.pas
r46 r51 34 34 btn_sort_ext_asc: TSpeedButton; 35 35 btn_sort_ext_desc: TSpeedButton; 36 Label1: TLabel; 37 Label2: TLabel; 36 38 procedure RecreateList; 37 39 procedure LoadFileNames; … … 82 84 i: LongWord; 83 85 exts: TStringArray; 84 begin 86 f, c1,c2: Int64; 87 time1,time2,time3: Double; 88 begin 89 QueryPerformanceFrequency(f); 90 QueryPerformanceCounter(c1); 85 91 combo_extension.Items.Clear; 86 92 combo_extension.Items.Add('_All files_ (' + … … 96 102 end else 97 103 combo_extension.Items.Add(exts[i]); 104 QueryPerformanceCounter(c2); 105 time1 := (c2 - c1) / f; 98 106 combo_extension.ItemIndex := 0; 99 107 combo_extensionClick(Self); 108 QueryPerformanceCounter(c1); 109 time2 := (c1 - c2) / f; 110 ShowMessage(FloatToStr(time1) +#13+#10+ FloatToStr(time2)); 100 111 end; 101 112
Note:
See TracChangeset
for help on using the changeset viewer.