CN105988913B - A kind of tempo instructions method and process indicating device - Google Patents

A kind of tempo instructions method and process indicating device Download PDF

Info

Publication number
CN105988913B
CN105988913B CN201510089122.7A CN201510089122A CN105988913B CN 105988913 B CN105988913 B CN 105988913B CN 201510089122 A CN201510089122 A CN 201510089122A CN 105988913 B CN105988913 B CN 105988913B
Authority
CN
China
Prior art keywords
duration
tempo instructions
tempo
instructions
progress
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510089122.7A
Other languages
Chinese (zh)
Other versions
CN105988913A (en
Inventor
陈良泳
李红帮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510089122.7A priority Critical patent/CN105988913B/en
Publication of CN105988913A publication Critical patent/CN105988913A/en
Application granted granted Critical
Publication of CN105988913B publication Critical patent/CN105988913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of tempo instructions method and process indicating devices, when wherein method includes: that task starts, request and obtain to complete the total duration that the required by task is wanted to processor;The tempo instructions that the task is carried out using acceleration mode or at the uniform velocity mode in the first duration;After first duration, the tempo instructions of the remaining progress amount of the task are carried out using at the uniform velocity mode;During completing the task, the tempo of tempo instructions is not zero, and the tempo of tempo instructions is greater than the tempo of the tempo instructions of the remaining progress amount in first duration.Present invention reduces the influences to processor performance, reduce resource waste, at the same also avoid user take for " crashing " or " Caton " and end task.

Description

A kind of tempo instructions method and process indicating device
[technical field]
The present invention relates to computer application technology, in particular to a kind of tempo instructions method and process indicating device.
[background technique]
Processor is when handling some relatively time-consuming tasks, it will usually show processing in the form of picture, animation etc. in real time The unfinished task amount of speed, completeness, residue and/or possible time to be processed, this display mode of task are known as progress Instruction, most common embodiment mode are progress bar.
Existing tempo instructions mode is to request every certain progress renewal time t to processor and obtain processor pair Processing status is mapped on progress bar by the processing status of current task in real time.For downloading a file, every 1s to The download state that processor requests and obtains processor to this document updates progress if downloading to the 10% of entire task The progress of item is 10%, if downloading to the 50% of entire task, the progress for updating progress bar is 50%.However, it is this into Degree indicating mode has the following deficiencies:
Processing status, meeting are continually requested to processor and obtained to one, needs during processor processing task Additional burden is brought to processor, wastes system resource.
If secondly, processor fail to timely respond to the request of progress indicator, be likely to result on progress indicator Progress does not update, is exactly from the user's point of view " crash " or " Caton ", and user can be carried out the operation such as end task, and actually The task is normally processed, and the operation of user is exactly faulty operation.
[summary of the invention]
In view of this, the present invention provides a kind of tempo instructions method and process indicating device, in order to save system money The faulty operation of user is reduced in source.
Specific technical solution is as follows:
The present invention provides a kind of tempo instructions methods, this method comprises:
When task starts, request and obtain to complete the total duration that the required by task is wanted to processor;
The tempo instructions that the task is carried out using acceleration mode or at the uniform velocity mode in the first duration;
After first duration, the tempo instructions of the remaining progress amount of the task are carried out using at the uniform velocity mode;
During completing the task, the tempo of tempo instructions is not zero, and progress in first duration The tempo of instruction is greater than the tempo of the tempo instructions of the remaining progress amount.
A preferred embodiment according to the present invention is referred in the first duration using the progress that at the uniform velocity mode carries out the task Show and includes:
FoundationDetermine the first duration t1The speed V of interior use0, wherein the S1To be preset in the first duration t1 The tempo instructions amount of interior completion;
The tempo instructions in a tempo instructions figure, the ti times updated progress are updated every progress renewal time t Instruction reaches Sti: Sti=V0×ti;The ti is i-th of renewal time;
Wherein, describedThe S2To remove S in tempo instructions figure1Except remaining progress amount, be described total Duration removes t1Except residual time length.
A preferred embodiment according to the present invention carries out the progress of the task in the first duration using acceleration mode Instruction includes:
FoundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein the S1For It is preset in the first duration t1The progress amount of interior completion, a are preset acceleration;
The tempo instructions in a tempo instructions figure, the ti times updated progress are updated every progress renewal time t Instruction reaches Sti:The ti is i-th of renewal time;
Wherein,The S2To remove S in tempo instructions figure1Except remaining progress amount, t2For institute It states in total duration except t1Except residual time length.
A preferred embodiment according to the present invention is referred to using the progress that at the uniform velocity mode carries out the remaining progress amount of the task Show and includes:
Determine that tempo V used by the remaining progress amount isThe S2To remove S in tempo instructions figure1It Outer remaining progress amount, the t2For the residual time length in the total duration in addition to first duration;
The tempo instructions in a tempo instructions figure, the tj times updated progress are updated every progress renewal time t Instruction reaches Stj: Stj=S1+ V × tj, tj are j-th of renewal time after first duration.
A preferred embodiment according to the present invention is referred to using the progress that at the uniform velocity mode carries out the remaining progress amount of the task Show and includes:
When completing first duration, Xiang Suoshu processor requests and obtains the real surplus duration for completing the task t3
It determines and the tempo V for updating tempo instructions isThe S2To remove S in tempo instructions figure1Except it is surplus Remaining progress amount;
After first duration, the tempo instructions in a tempo instructions figure are updated every progress renewal time t, TjSecondary updated tempo instructions reach Stj: Stj=S1+ V × tj, tj be first duration after j-th of update when Between.
A preferred embodiment according to the present invention, this method further include:
Some renewal time after first duration, Xiang Suoshu processor request and obtain to complete the task Real surplus duration t4
It determines and the tempo V for updating tempo instructions isThe S3For in tempo instructions figure it is current it is remaining into Measurement;
Since some described renewal time, the progress in a tempo instructions figure is updated every progress renewal time t Instruction, txSecondary updated tempo instructions reach Stx: Stx=S+V × tx, the S be some described renewal time it is corresponding into Measurement, tx are x-th of renewal time after some described renewal time.
The present invention also provides a kind of process indicating device, which includes:
Duration request unit completes what the required by task was wanted for when task starts, requesting and obtaining to processor Total duration;
First indicating unit, in the first duration use acceleration mode or at the uniform velocity mode carry out the task into Degree instruction;
Second indicating unit, for after first duration, using at the uniform velocity mode carry out the task it is remaining into The tempo instructions of measurement;
Wherein, during completing the task, the tempo of tempo instructions is not zero, and in first duration The tempo of tempo instructions is greater than the tempo of the tempo instructions of the remaining progress amount.
A preferred embodiment according to the present invention, first indicating unit are specifically used for foundationDetermine One duration t1The speed V of interior use0, wherein the S1To be preset in the first duration t1The tempo instructions amount of interior completion;Every into Spend the tempo instructions in a renewal time t tempo instructions figure of update, tiSecondary updated tempo instructions reach Sti: Sti= V0×ti;The ti is i-th of renewal time;
Wherein, describedThe S2To remove S in tempo instructions figure1Except remaining progress amount, be described total Duration removes t1Except residual time length.
A preferred embodiment according to the present invention, first indicating unit are specifically used for foundation Determine the initial velocity V of tempo instructions in tempo instructions figure0, wherein the S1To be preset in the first duration t1Interior completion Progress amount, a are preset acceleration;The tempo instructions in a tempo instructions figure are updated every progress renewal time t, The ti times updated tempo instructions reach Sti: The ti is i-th of renewal time;
Wherein,The S2To remove S in tempo instructions figure1Except remaining progress amount, t2For institute It states in total duration except t1Except residual time length.
A preferred embodiment according to the present invention, second indicating unit are specifically used for determining the remaining progress amount Used tempo V isThe S2To remove S in tempo instructions figure1Except remaining progress amount, the t2It is described Residual time length in total duration in addition to first duration;It is updated in a tempo instructions figure every progress renewal time t Tempo instructions, the tj times updated tempo instructions reach Stj: Stj=S1+ V × tj, tj are the after first duration J renewal time.
A preferred embodiment according to the present invention, the duration request unit are also used to when completing first duration, It is requested to the processor and obtains the real surplus duration t for completing the task3, and by the t3Described second is supplied to refer to Show unit;
Second indicating unit is specifically for determining and updating the tempo V of tempo instructionsThe S2For into S is removed in degree instruction figure1Except remaining progress amount;After first duration, updated every progress renewal time t primary Tempo instructions in tempo instructions figure, tjSecondary updated tempo instructions reach Stj: Stj=S1+ V × tj, tj are described the J-th of renewal time after one duration.
A preferred embodiment according to the present invention, the duration request unit are also used to after first duration Some renewal time, Xiang Suoshu processor request and obtain the real surplus duration t for completing the task4, and by the t4It provides To second indicating unit;
Second indicating unit, is also used to receive the t4Afterwards, a progress is updated every progress renewal time t to refer to Tempo instructions in diagram shape, the tx times updated tempo instructions reach Stx: Stx=S+V × tx, the S is receives State t4The progress amount indicated in Shi Suoshu tempo instructions figure, tx are to receive the t4X-th of renewal time later.
As can be seen from the above technical solutions, the present invention to processor without requesting and obtaining every progress renewal time The processing status of current task reduces the influence to processor performance, reduces resource waste.In the treatment process of task In, the case where tempo instructions suspend due to processor can not timely respond to request is reduced, so that visually progress refers to user Showing will not suspend, thus avoid user take for " crashing " or " Caton " and end task.
[Detailed description of the invention]
Fig. 1 is the flow chart of tempo instructions method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of progress bar provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of circular tempo instructions figure provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of the tempo instructions figure of form of annular rings provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of columnar tempo instructions figure provided in an embodiment of the present invention;
Fig. 6 is the structure chart of process indicating device provided in an embodiment of the present invention.
[specific embodiment]
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments The present invention is described in detail.
By the analysis to user demand, find demand of the user to tempo instructions be usually entire task need how long when Between, if total time is acceptable, wait for the end of task, if the time be it is unacceptable, can directly terminate Task, and it is slow for when handling when to handle fastly in task processes, not too much it is concerned about.Therefore, originally The core concept of invention is, requests and obtain the total duration of task processing to processor when tempo instructions are initial, total at this Mode carries out tempo instructions to preceding first duration of duration in a manner of acceleration or at the uniform velocity, during which guarantees that progress does not stop, it is remaining into Measurement carries out tempo instructions in a manner of at the uniform velocity, and the tempo of tempo instructions is greater than the progress of remaining progress amount in preceding first duration The tempo of instruction.Further, it can be requested to processor during carrying out tempo instructions to remaining progress amount And the real surplus duration of task processing is obtained, it is determining with real surplus duration and update the tempo of tempo instructions.
Preferably, usually very fast using one relative to rear portion progress in front portion in order to improve user's impression Speed, therefore can be set in preceding t1S is completed in time1Progress amount, in rear t2S is completed in time2Progress amount, wherein At least
Further, if front portion is using acceleration mode, in order to guarantee front portion relative to latter Partial progresses use faster speed, then at least needing to guarantee t1The speed at moment is greater than the speed that rear portion at the uniform velocity uses Value.
t1The speed at momentt1Speed after moment It is at most therefore to be preferably provided with
If half the time completes the 90% of entire progress in a manner of acceleration, the other half time is completed entirely in a manner of speed The residue 10% of progress.
Method provided by the invention is described in detail below with reference to Fig. 1 and embodiment shown in Fig. 3, it is shown in Fig. 1 Embodiment in front portion in tempo instructions carried out in a manner of acceleration, rear portion is excellent by taking speed mode carries out as an example Selection of land, in order to improve user experience, in the present embodiment, the acceleration of front portion uses preset negative integer, i.e., previous portion The decrease of speed of tempo instructions during point, tempo instructions are using at the uniform velocity during rear portion.
Fig. 1 is method flow diagram provided in an embodiment of the present invention, assumes that tempo instructions figure is progress in this embodiment Item, in front portion time t1In preceding S is carried out in a manner of acceleration1The tempo instructions of progress amount, remaining progress amount S2Progress refer to Show and carried out in a manner of at the uniform velocity, task to be processed is page loading tasks.As shown in fig. 1, this method may include following step It is rapid:
In 101, is requested to processor and obtain total duration required for completing page loading tasks.
When just starting loading page, i.e., when task processing starts, need once to be interacted with processor, to processor Total duration required for page loading tasks is completed in request, and processor can size according to the page to be loaded and current network Speed determines total duration required for loading tasks.
In 102, the progress amount S that is completed according to preset acceleration a, acceleration mode1It is completed in a manner of acceleration The duration t of tempo instructions1, determine the initial velocity V of tempo instructions in progress bar0
In this step mainly using the calculation of physics, initial velocity V0Are as follows:
In 103, according to obtained initial velocity V0, the progress in a progress bar is updated every progress renewal time t Instruction, the ti times updated tempo instructions reach Sti
Wherein,
Ti is i-th of renewal time.
If in time t1It is interior to be indicated using at the uniform velocity mode schedule, then initial velocityThe initial velocity It is exactly in t1The speed of interior use updates the tempo instructions in a progress bar every progress renewal time t, after the ti times updates Tempo instructions reach Sti=V0×ti。
In 104, when it is completed between t1When, when being requested to processor and obtaining the real surplus for completing page loading tasks Long t3
Due in actual task treatment process, it is understood that there may be some situations, such as performance is unstable, network speed is unstable etc. Situation, total duration needed for leading to task processing change, i.e., originally should residual time length t2, become real surplus duration t3, therefore, once interacted with processor again in this step.
In 105, remaining progress amount S is utilized2With real surplus duration t3Determine and update the tempo V of tempo instructions.
In this step, the V determined needs to guarantee at the uniform velocity to update tempo instructions with the V, can be in residual time length t3It is interior Current page loading tasks are completed, then
In 106, in rear t3Time in, every duration t update a progress bar tempo instructions, the tj time update after Tempo instructions reach Stj
Wherein, Stj=S1+ V × tj, tj are j-th of renewal time in remaining progress amount, that is, t1Later j-th Renewal time.
If excluding the case where total duration needed for will lead to task processing in actual task treatment process changes, also There are ideal states, i.e., total duration is exactly the total duration initially determined that out, i.e., need not be then step 104 can not also be executed Deadline t1When, it is requested to processor and obtains the real surplus duration t for completing page loading tasks3, but utilize it is remaining into Measure S2With residual time length t2Determine the tempo V of tempo instructions, at this timeEven if in addition, execute step 104, The real surplus duration t for requesting and obtaining to processor3T may also be equal to2
In process shown in Fig. 1, in time t1It later, i.e., after step 105 and before loading tasks terminate, can be with It is requested at regular intervals to processor and obtains the real surplus duration for completing page loading tasks, then utilize remaining progress Amount and the determination of real surplus duration and the tempo for updating tempo instructions.That is, tempo instructions will can at the uniform velocity be carried out If stage cutting be stem portion, every part all refers to according to the real surplus duration requesting and obtain to processor to update progress The tempo shown, i.e. t1Constant speed part later, it is understood that there may be several different tempos.
In the above-described embodiments, in addition to the usage scenario applied to above-mentioned webpage, such as cell phone application can also be applied to The usage scenarios such as (application), pc client, system operatio, such as antivirus software is when carrying out virus scan, for virus scan Progress indicated that then for example when deleting big file, the progress deleted for file is indicated.The generation of progress bar and Update can by application, client or operating system etc. control or component execute.
For a specific example for embodiment shown in Fig. 1, it is assumed that complete in a manner of acceleration in the first half time At preceding 90% progress, wherein acceleration a is -2mm/s2, 10% progress after the completion of in the later half time in a manner of at the uniform velocity, Current page-size to be loaded is 1000KB, and current network speed is 100KB/s.
Page load is carried out at the beginning, just gets the size and network speed of the page of load, determines that completing the page adds Carrying the total duration that required by task is wanted isThe when a length of 5s of progress is updated, in a manner of acceleration so at the uniform velocity Mode updates the when a length of 5s of progress.
If the total length of progress bar is 100mm, a length of 90mm of the progress completed in a manner of acceleration, at the uniform velocity square The a length of 10mm of progress that formula is completed.
The initial velocity of tempo instructions in progress bar
If updating the tempo instructions in a progress bar every 1s, in 1s, updated tempo instructions are arrived It reaches: 23 × 1+0.5 × (- 2) × 12=22 (mm).
In 2s, updated tempo instructions are reached: 23 × 2+0.5 × (- 2) × 22=42 (mm).
In 3s, updated tempo instructions are reached: 23 × 3+0.5 × (- 2) × 32=60 (mm).
In 4s, updated tempo instructions are reached: 23 × 4+0.5 × (- 2) × 42=76 (mm).
In 5s, updated tempo instructions are reached: 23 × 5+0.5 × (- 2) × 52=90 (mm).
At the end of 5s, present speed is
It is requested to processor and obtains the real surplus duration for completing page loading tasks, it is assumed that the reality obtained at this time is surplus Remaining duration is identical as the duration of script plan, and residue 5s, then 5s carries out tempo instructions in a manner of at the uniform velocity below, the When 6s, updated tempo instructions are reached: 90+2 × 1=92.
In 7s, updated tempo instructions are reached: 90+2 × 2=94.
In 8s, updated tempo instructions are reached: 90+2 × 3=96.
In 9s, updated tempo instructions are reached: 90+2 × 4=98.
In 10s, updated tempo instructions are reached: 90+2 × 2=100.
The update situation of tempo instructions can be as shown in Figure 2 in corresponding progress bar, each to update every expression in Fig. 2 Progress status, the number of lower section is corresponding renewal time, such as 1 corresponding 1s, 2 corresponding 2s, and so on.
In the above-described example, it is assumed that in 8s, and requested to processor and obtain the reality for completing page loading tasks Residual time length is 4s, then it is determining using real surplus duration of acquisition and update the tempo of tempo instructions, it is updated toSo in the tempo for using 1mm/s later, in 9s, updated tempo instructions are reached: 96+1 × 1=97.
In 10s, updated tempo instructions are reached: 96+1 × 2=98.
In 11s, updated tempo instructions are reached: 96+1 × 3=99.
In 12s, updated tempo instructions are reached: 96+1 × 4=100.So far, page loading tasks are completed.
Tempo instructions figure, can also be using circle (such as institute in Fig. 3 other than using the form of this strip of progress bar Show), annulus (as shown in Figure 4), the forms such as column (as shown in Figure 5), when using forms such as round or annulus, it is above-mentioned plus Speed uses angular acceleration, and progress amount uses angle, and speed uses angular speed, and implementation process does not change.In addition, in progress When indicating indicating progress in figure, the form of animation can be used.
It is the detailed description carried out to method provided by the present invention above, device provided by the present invention is carried out below Detailed description.
Fig. 6 is the structure chart of process indicating device provided in an embodiment of the present invention, which can be with plug-in unit or component Form is set in cell phone application, pc client, application system or web page, as shown in fig. 6, the apparatus may include: when Long request unit 01, the first indicating unit 02 and the second indicating unit 03.
Duration request unit 01 is responsible for when task starts, requested to processor and obtain complete required by task want it is total when It is long.Processor can should device request, determine that completing required by task wants total according to current system performance and task situation Duration, and return to the device.
First indicating unit 02 be responsible in preceding first duration using acceleration mode or at the uniform velocity mode carry out task into Degree instruction.Second indicating unit 03 is responsible for after the first duration, using at the uniform velocity mode carry out the remaining progress amount of task into Degree instruction.Wherein, during completion task, the tempo of tempo instructions is not zero, i.e., will not to user with task into The impression stopped being opened up, and the tempo of tempo instructions is greater than the progress speed of the tempo instructions of remaining progress amount in the first duration Degree, i.e., the impression to be made much progress in the initial stage of task to user with task.
It, can foundation when the first indicating unit 02 carries out tempo instructions by the way of at the uniform velocityDetermine first Duration t1The speed V of interior use0, wherein S1To be preset in the first duration t1The tempo instructions amount of interior completion;It is updated every progress Time t updates the tempo instructions in a tempo instructions figure, tiSecondary updated tempo instructions reach Sti: Sti=V0× ti;Ti is i-th of renewal time;Wherein,S2To remove S in tempo instructions figure1Except remaining progress amount, be total Duration removes t1Except residual time length.
It, can foundation when the first indicating unit 02 carries out tempo instructions by the way of accelerationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein S1To be preset in the first duration t1The progress amount of interior completion, a are preset acceleration;Every progress renewal time t update a tempo instructions figure in into Degree instruction, the ti times updated tempo instructions reach Sti: Ti is i-th of renewal time.
If it is assumed that processor is ideal state to the processing of task, i.e., total duration used and it is sent to the tempo instructions The total duration of device is consistent, then the second indicating unit 03 can be in the following ways: determine used by residue progress amount into Opening up speed V isS2To remove S in tempo instructions figure1Except remaining progress amount, t2For in total duration in addition to the first duration Residual time length;Every progress renewal time t update a tempo instructions figure in tempo instructions, the tj times it is updated into Degree instruction reaches Stj: Stj=S1+ V × tj, tj are j-th of renewal time after the first duration.
However in actual task treatment process, it is understood that there may be some situations, such as performance is unstable, environment is unstable etc. Situation causes processor to change total duration required for task processing, in this case, it is preferable that when completing the When one duration, duration request unit 01 can request to processor and obtain the real surplus duration t of completion task3, and by t3It mentions Supply the second indicating unit 03.
Second indicating unit 03 receives above-mentioned t3Afterwards, it determines and the tempo V for updating tempo instructions isS2For into S is removed in degree instruction figure1Except remaining progress amount;After the first duration, a progress is updated every progress renewal time t Indicate the tempo instructions in figure, tjSecondary updated tempo instructions reach Stj: Stj=S1+ V × tj, tj be the first duration it J-th of renewal time afterwards.
During subsequent at the uniform velocity progress tempo instructions, it can also be requested at regular intervals to processor and obtain reality Then border residual time length utilizes remaining progress amount and the determination of real surplus duration and the tempo for updating tempo instructions.Exist Some renewal time after first duration, duration request unit 01 can also request to processor and obtain the reality of completion task Border residual time length t4, and by t4It is supplied to the second indicating unit 03.
Second indicating unit 03 receives above-mentioned t4Afterwards, it is updated in a tempo instructions figure every progress renewal time t Tempo instructions, the tx times updated tempo instructions reach Stx: Stx=S+V × tx, S are to receive t4When tempo instructions figure In the progress amount that has indicated, tx is to receive t4X-th of renewal time later.
Above-mentioned the first indicating unit 02 and the second indicating unit 03, can be in tempo instructions figure when carrying out tempo instructions Reflect the progress of task in shape, the tempo instructions figure of use can include but is not limited to the shapes such as strip, circle, annulus, column Formula.In addition, the form of animation can be used in tempo instructions figure when indicating progress.
The above method and device provided by the invention can have following advantages it can be seen from above description:
1) present invention is not necessarily to that the processing status of current task is requested and obtained to processor every progress renewal time, When task starts, the total duration that required by task is wanted is requested and obtained to processor, is at least all no longer needed in the first duration to place It manages device and issues request, reduce the influence to processor performance, reduce resource waste.
2) it in the treatment process of task, reduces because processor can not timely respond to the feelings of request due to tempo instructions pause Condition so that visually tempo instructions will not suspend user, therefore avoid user take for " crashing " or " Caton " and terminate Task.
3) one side tempo instructions will not suspend, and tempo instructions make fast progress in the time of another aspect front end, so that with Visually there is the cracking happy impression of task processing at family.
4) during the at the uniform velocity tempo instructions of back segment, it can be requested to processor and obtain real surplus duration to correct The speed of tempo instructions keeps the total duration of tempo instructions consistent with actual treatment duration.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of tempo instructions method, which is characterized in that this method comprises:
When task starts, request and obtain to complete the total duration that the required by task is wanted to processor;
In preset first duration t1The interior default progress amount S that the task is carried out using acceleration mode or at the uniform velocity mode1Into Instruction is spent, wherein t1Less than the total duration;
As the first duration t of completion1When, it is requested to processor and obtains the real surplus duration t for completing page loading tasks3;It utilizes Remaining progress amount S2With real surplus duration t3, determine and update the tempo V of tempo instructions;After first duration, A tempo instructions are updated every duration t;
During completing the task, the tempo of tempo instructions is not zero, and the t1The speed at moment is greater than latter The velocity amplitude that part at the uniform velocity uses.
2. the method according to claim 1, wherein carrying out the task using at the uniform velocity mode in the first duration Tempo instructions include:
FoundationDetermine the first duration t1The speed V of interior use0, wherein the S1To be preset in the first duration t1It is interior complete At tempo instructions amount;
The tempo instructions in a tempo instructions figure, the ti times updated tempo instructions are updated every progress renewal time t Reach Sti: Sti=V0×ti;The ti is i-th of renewal time;
Wherein, describedThe S2To remove S in tempo instructions figure1Except remaining progress amount, the t2It is described total Duration removes t1Except residual time length.
3. the method according to claim 1, wherein carrying out described appoint using acceleration mode in the first duration The tempo instructions of business include:
FoundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein the S1It is default In the first duration t1The progress amount of interior completion, a are preset acceleration;
The tempo instructions in a tempo instructions figure, the ti times updated tempo instructions are updated every progress renewal time t Reach Sti:The ti is i-th of renewal time;
Wherein,The S2To remove S in tempo instructions figure1Except remaining progress amount, t2When being described total T is removed in length1Except residual time length.
4. method according to claim 1,2 or 3, which is characterized in that the V is
Described during a duration t tempo instructions of update, the tj times updated tempo instructions reach Stj: Stj=S1 + V × tj, tj are j-th of renewal time after first duration.
5. according to the method described in claim 4, it is characterized in that, this method further include:
Some renewal time after first duration, Xiang Suoshu processor request and obtain the reality for completing the task Residual time length t4
It determines and the tempo V for updating tempo instructions isThe S3For remaining progress amount current in tempo instructions figure;
Since some described renewal time, the tempo instructions in a tempo instructions figure are updated every progress renewal time t, The tx times updated tempo instructions reach Stx: Stx=S+V × tx, the S are some described renewal time corresponding progress Amount, tx are x-th of renewal time after some described renewal time.
6. a kind of process indicating device, which is characterized in that the device includes:
Duration request unit, for when task starts, request and obtain to processor complete that the required by task wants it is total when It is long;
First indicating unit, in preset first duration t1It is interior using acceleration mode or at the uniform velocity mode carries out the task Default progress amount S1Tempo instructions, wherein t1Less than the total duration;
Duration request unit is also used to as completion the first duration t1When, Xiang Suoshu processor requests and obtains completion described The real surplus duration t of business3, and by the t3It is supplied to the second indicating unit;
Second indicating unit, for utilizing remaining progress amount S2With real surplus duration t3, determine and update the progress of tempo instructions Speed V;After first duration, a tempo instructions are updated every duration t;
Wherein, during completing the task, the tempo of tempo instructions is not zero, and the t1The speed at moment is big In the velocity amplitude that rear portion at the uniform velocity uses.
7. device according to claim 6, which is characterized in that first indicating unit is specifically used for foundation Determine the first duration t1The speed V of interior use0, wherein the S1To be preset in the first duration t1The tempo instructions amount of interior completion; The tempo instructions in a tempo instructions figure are updated every progress renewal time t, the ti times updated tempo instructions reach Sti: Sti=V0×ti;The ti is i-th of renewal time;
Wherein, describedThe S2To remove S in tempo instructions figure1Except remaining progress amount, the t2It is described total Duration removes t1Except residual time length.
8. device according to claim 6, which is characterized in that first indicating unit is specifically used for foundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein the S1To be preset first Duration t1The progress amount of interior completion, a are preset acceleration;A tempo instructions figure is updated every progress renewal time t Tempo instructions in shape, the ti times updated tempo instructions reach Sti:The ti is i-th A renewal time;
Wherein,The S2To remove S in tempo instructions figure1Except remaining progress amount, t2When being described total T is removed in length1Except residual time length.
9. according to device described in claim 6,7 or 8, which is characterized in that
The V is
Described during a duration t tempo instructions of update, the tj times updated tempo instructions reach Stj: Stj=S1 + V × tj, tj are j-th of renewal time after first duration.
10. device according to claim 9, which is characterized in that the duration request unit is also used at described first Some renewal time after length, Xiang Suoshu processor request and obtain the real surplus duration t for completing the task4, and will The t4It is supplied to second indicating unit;
Second indicating unit, is also used to receive the t4Afterwards, a tempo instructions figure is updated every progress renewal time t Tempo instructions in shape, the tx times updated tempo instructions reach Stx: Stx=S+V × tx, the S are to receive the t4When The progress amount indicated in the tempo instructions figure, tx are to receive the t4X-th of renewal time later.
CN201510089122.7A 2015-02-27 2015-02-27 A kind of tempo instructions method and process indicating device Active CN105988913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510089122.7A CN105988913B (en) 2015-02-27 2015-02-27 A kind of tempo instructions method and process indicating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510089122.7A CN105988913B (en) 2015-02-27 2015-02-27 A kind of tempo instructions method and process indicating device

Publications (2)

Publication Number Publication Date
CN105988913A CN105988913A (en) 2016-10-05
CN105988913B true CN105988913B (en) 2019-06-28

Family

ID=57038682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510089122.7A Active CN105988913B (en) 2015-02-27 2015-02-27 A kind of tempo instructions method and process indicating device

Country Status (1)

Country Link
CN (1) CN105988913B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874171B (en) * 2017-02-15 2020-10-30 联想(北京)有限公司 Task operation monitoring method and device and electronic equipment
CN111344661B (en) * 2017-09-15 2023-12-08 深圳传音通讯有限公司 Display method and display device for intelligent terminal
CN107861787A (en) * 2017-11-19 2018-03-30 叮联信息技术有限公司 Event schdules statistics and display methods based on the filling of figure color
CN108037968B (en) * 2017-12-01 2021-11-05 东软集团股份有限公司 Execution progress display method and device, storage medium and electronic equipment
CN108156505A (en) * 2017-12-25 2018-06-12 福建中金在线信息科技有限公司 The method and relevant device that a kind of animation plays
CN109828826B (en) * 2019-01-10 2021-11-09 新华三云计算技术有限公司 Task progress polling method, device and system
CN113296860B (en) * 2021-05-13 2022-07-29 武汉联影医疗科技有限公司 Progress bar refreshing method and device, computer equipment and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141953B (en) * 2011-04-01 2013-10-16 奇智软件(北京)有限公司 Method and device for showing progress bar
CN103488555B (en) * 2011-04-01 2016-09-28 北京奇虎科技有限公司 Progress bar implementation method and device
CN103530145B (en) * 2011-04-01 2017-05-10 北京奇虎科技有限公司 progress bar setting method and device
US9251032B2 (en) * 2011-11-03 2016-02-02 Fujitsu Limited Method, computer program, and information processing apparatus for analyzing performance of computer system
CN103631571B (en) * 2012-08-21 2017-09-22 腾讯科技(深圳)有限公司 The control method and device of a kind of progress bar
CN104199643B (en) * 2014-08-08 2017-12-29 可牛网络技术(北京)有限公司 Control method, device and the electronic equipment of progress bar loading
CN104375862B (en) * 2014-11-11 2018-07-31 北京搜狗科技发展有限公司 A kind of progress bar shows method and device

Also Published As

Publication number Publication date
CN105988913A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN105988913B (en) A kind of tempo instructions method and process indicating device
JP6918909B2 (en) File download method, device and computer readable media
JP2019517043A5 (en)
US10248581B2 (en) Guarded memory access in a multi-thread safe system level modeling simulation
KR20170132296A (en) Federation-based memory management
CN108139931A (en) It synchronizes to accelerate task subgraph by remapping
US9075666B2 (en) Deferred execution in a multi-thread safe system level modeling simulation
US8983908B2 (en) File link migration for decommisioning a storage server
AU2016202576B2 (en) Techniques for evaluating applications through use of an auxiliary application
CN106126731B (en) Method and device for acquiring Elasticissearch paging data
US11095567B2 (en) System and method to optimize workflow
US9201708B2 (en) Direct memory interface access in a multi-thread safe system level modeling simulation
CN112199007A (en) Menu display method and device, electronic equipment and storage medium
US10216553B2 (en) Message oriented middleware with integrated rules engine
CN105808347A (en) Cluster server deployment calculation method and device
US9338313B2 (en) Document management apparatus and document management system
US9921971B2 (en) Context based cache eviction
JP2008186147A5 (en)
CN107092514B (en) Page content display method and device
JP7177349B2 (en) Scheduling program, scheduling device and scheduling method
US20150199315A1 (en) Systems and methods for animating collaborator modifications
CN102355486A (en) Data download method and apparatus thereof
CN108021448A (en) A kind of optimization method and device of kernel spacing
JP6321362B2 (en) Definition of object groups in 3D
CN104461636B (en) A kind of skin resource loading method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant