Business Time and Array

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.