01. handling of time-consuming information on business systems
A: General processing method: take the time point before the start of business, take the time point after the business processing is completed, and then get it through the two time difference of business Hours.
B: optimization processing method: in fact, D has provided the relevant business functions for us to use, but we have not known it
A. Define a structural object: sw:tstopwatch; ==> Reference System.Diagnostics.pas
B. Direct start record: sw: =tstopwatch.startnew;
C. At the End: SW. Stop; D. Take the Slack: SW. elapsedmilliseconds; Number of microseconds
----------------------------------------------
Tstopwatch: This is the amount of time (or the system CPU Cycle) that will be continuously monitored from start (or startnew).
After the call stop, the monitoring will stop;
02. questions about dynamic array pointer value and value assignment
A. Assume that there is a data arya:array of integer;
B. if the new definition of an array aryb: = AryA;
Arya,aryb two variables, pointing to the same intrinsic address, any one of the array of value processing, will affect the other one;
C. if the new definition of an array aryc: = Copy (arya,low (AryA), Length (AryA));
At this point the ARYA,ARYC is two different arrays, the copy action is the contents of the Arya value, copied a copy of the group aryc,
ARYA,ARYC points to different memory addresses;
D. Traversal of arrays
A. For i:= low (array) to high (array) does--specifies the array bounds for loop processing
B. For XX by Array do
--directly using in for traversal, starting from D2007
E. New methods of calculation for arrays
Insert (to Insert a new array of contents, insert the target array, Insert position index Value)
Delete (to Delete the group group in, Delete the starting index position, delete the Quantity)
F. Processing as a parameter of an open array function or procedure
Slice (array, number)-the specified number of parts starting with the first content of the array as a subarray object, passed out
Business Time and Array