CN105988913A - Progress indication method and device - Google Patents

Progress indication method and device Download PDF

Info

Publication number
CN105988913A
CN105988913A CN201510089122.7A CN201510089122A CN105988913A CN 105988913 A CN105988913 A CN 105988913A CN 201510089122 A CN201510089122 A CN 201510089122A CN 105988913 A CN105988913 A CN 105988913A
Authority
CN
China
Prior art keywords
progress
time
indication
task
remaining
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.)
Granted
Application number
CN201510089122.7A
Other languages
Chinese (zh)
Other versions
CN105988913B (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

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

The invention provides a progress indication method and device. The method comprises the steps of: requesting a processor to acquire a total time period for completing a task at the beginning of the task; performing progress indication on the task in an acceleration mode or a constant speed mode within a first time period; and performing progress indication on a remaining progress amount of the task in the constant speed mode after the first time period, wherein in a process of completing the task, the progress speed of the progress indication is not zero, and the progress speed of the progress indication within the first time period is higher than that of the progress indication of the remaining progress amount. Through adoption of the method and the device, the influence on the processor performance and the resource waste are reduced, and meanwhile, a condition that a user ends the task by mistaking a phenomenon of crash or standstill, is avoided.

Description

Progress indication method and progress indication device
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of computer application, in particular to a progress indicating method and a progress indicating device.
[ background of the invention ]
When processing some time-consuming tasks, the processor usually displays the speed, the completion degree, the remaining uncompleted task amount and/or the possible time to be processed in the form of pictures, animations and the like in real time, wherein the display mode is called a progress indication, and the most common mode is represented by a progress bar.
The existing progress indication mode is to request and acquire the processing state of the current task by the processor at regular intervals of progress update time t, and map the processing state to a progress bar in real time. For example, a file is downloaded, the downloading state of the file by the processor is requested and obtained from the processor every 1s, if the file is downloaded to 10% of the whole task, the progress of updating the progress bar is 10%, and if the file is downloaded to 50% of the whole task, the progress of updating the progress bar is 50%. However, this progress indication method has the following disadvantages:
first, the processor needs to frequently request and acquire a processing state in the process of processing tasks by the processor, which causes additional burden on the processor and wastes system resources.
Secondly, if the processor fails to respond to the request of the progress indicator in time, the progress on the progress indicator may not be updated, the user looks like "dead halt" or "stuck", the user may perform operations such as ending a task, and actually the task is processed normally, and the user's operation is an error operation.
[ summary of the invention ]
In view of this, the present invention provides a progress indication method and a progress indication apparatus, so as to save system resources and reduce user's misoperation.
The specific technical scheme is as follows:
the invention provides a progress indication method, which comprises the following steps:
when a task starts, requesting a processor and acquiring the total time length required for completing the task;
performing progress indication of the task in an acceleration mode or a constant speed mode within a first time period;
after the first time length, performing progress indication of the residual progress amount of the task in a constant speed mode;
in the process of completing the task, the progress speed of the progress indication is not zero, and the progress speed of the progress indication in the first duration is greater than the progress speed of the progress indication of the remaining progress amount.
According to a preferred embodiment of the present invention, the indicating the progress of the task in a constant speed manner within the first time period includes:
according toDetermining a first time period t1Velocity V adopted internally0Wherein said S1Is a preset first time length t1An indication of internally completed progress;
updating the progress indication in the progress indication graph once every other progress updating time t, wherein the updated progress indication reaches Sti:Sti=V0× ti, wherein ti is the ith update time;
wherein, theSaid S2Indicating for progress a graphic except for S1The remaining amount of progress, other than t, being the total duration1The remaining time period outside.
According to a preferred embodiment of the present invention, the indicating the progress of the task in the acceleration mode within the first time period includes:
according toDetermining an initial velocity V of a progress indication in a graph of progress indications0Wherein said S1Is a preset first time length t1The internally completed advance amount, wherein a is a preset acceleration;
updating the progress indications in the progress indication graph once every progress update time tThe updated progress indicator reaches StiThe ti is the ith update time;
wherein,said S2Indicating for progress a graphic except for S1The amount of remaining progress out, t2Dividing t by the total duration1The remaining time period outside.
According to a preferred embodiment of the present invention, the indicating the progress of the remaining progress amount of the task in a constant speed manner includes:
the rate of progress V employed in determining the amount of remaining progress isSaid S2Indicating for progress a graphic except for S1The amount of remaining progress beyond, t2The remaining time length except the first time length in the total time length is obtained;
updating the progress indication in the progress indication graph once every time t, wherein the updated progress indication reaches S for the tj timetj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
According to a preferred embodiment of the present invention, the indicating the progress of the remaining progress amount of the task in a constant speed manner includes:
when the first time length is finished, requesting and acquiring the actual residual time length t for finishing the task from the processor3
Determining and updating the progress rate V of the progress indication toSaid S2Indicating for progress a graphic except for S1An amount of remaining progress beyond;
updating the progress indication in the progress indication graph after the first time period every progress update time t, the tth timejThe next updated progress indication reaches Stj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
According to a preferred embodiment of the invention, the method further comprises:
at a certain update time after the first time, requesting and obtaining the actual remaining time t for completing the task from the processor4
Determining and updating the progress rate V of the progress indication toSaid S3Indicating a current amount of progress remaining in the graph for the progress;
updating the progress indication in the progress indication graph once every progress update time t from the certain update time, the tthxThe next updated progress indication reaches Stx:StxAnd the step of updating the current time by the certain updating time is S + V × tx, wherein S is the progress amount corresponding to the certain updating time, and tx is the xth updating time after the certain updating time.
The invention also provides a progress indicating device, which comprises:
the time length request unit is used for requesting the processor and acquiring the total time length required by completing the task when the task starts;
the first indicating unit is used for indicating the progress of the task in an acceleration mode or a constant speed mode within a first time period;
a second indicating unit, configured to perform progress indication of the remaining progress amount of the task in a constant speed manner after the first duration;
and in the process of completing the task, the progress speed of the progress indication is not zero, and the progress speed of the progress indication in the first duration is greater than the progress speed of the progress indication of the residual progress amount.
According to a preferred embodiment of the present invention, the first indicating unit is specifically adapted to be based onDetermining a first time period t1Velocity V adopted internally0Wherein said S1Is a preset first time length t1An indication of internally completed progress; updating the progress indication in the progress indication graph once every progress update time t, the tthiThe next updated progress indication reaches Sti:Sti=V0×ti(ii) a The ti is the ith update time;
wherein, theSaid S2Indicating for progress a graphic except for S1The remaining amount of progress, other than t, being the total duration1The remaining time period outside.
According to a preferred embodiment of the present invention, the first indicating unit is specifically adapted to be based onDetermining an initial velocity V of a progress indication in a graph of progress indications0Wherein said S1Is a preset first time length t1The internally completed advance amount, wherein a is a preset acceleration; updating the progress indication in the progress indication graph once every other progress updating time t, wherein the updated progress indication reaches Sti The ti is the ith update time;
wherein,said S2Indicating for progress a graphic except for S1The amount of remaining progress out, t2Dividing t by the total duration1The remaining time period outside.
According to a preferred embodiment of the present invention, the second indicating unit is specifically configured to determine the progress rate V adopted by the remaining progress amount asSaid S2Indicating for progress a graphic except for S1The amount of remaining progress beyond, t2The remaining time length except the first time length in the total time length is obtained; updating the progress indication in the progress indication graph once every time t, wherein the updated progress indication reaches S for the tj timetj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
According to a preferred embodiment of the present invention, the duration requesting unit is further configured to request and obtain the actual remaining duration t for completing the task from the processor when the first duration is completed3And combining said t3Is provided to the second indicating unit;
the second indicating unit is specifically configured to determine and update a progress speed V of the progress indication toSaid S2Indicating for progress a graphic except for S1An amount of remaining progress beyond; updating the progress indication in the progress indication graph after the first time period every progress update time t, the tth timejThe next updated progress indication reaches Stj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
According to a preferred embodiment of the present invention, the duration requesting unit is further configured to request and obtain the actual remaining duration t for completing the task from the processor at an update time after the first duration4And combining said t4Is provided to the second indicating unit;
the second indicating unit is further used for receiving the t4Then, updating the progress indication in the progress indication graph once every other progress updating time t, and enabling the tx-th updated progress indication to reach Stx:Stx(ii) S + V × tx, S being the reception of t4The amount of progress already indicated in the progress indication graph, tx being the amount of progress received4The x-th update time thereafter.
According to the technical scheme, the processing state of the current task is not required to be requested to the processor and acquired at intervals of schedule updating time, so that the influence on the performance of the processor is reduced, and the resource waste is reduced. In the process of processing the task, the condition that the progress indication is suspended because the processor cannot respond to the request in time is reduced, so that the user cannot suspend the progress indication visually, and the user is prevented from mistakenly thinking that the task is halted or stuck.
[ description of the drawings ]
Fig. 1 is a flowchart of a progress indication method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a progress bar provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a circular progress indication graphic provided by an embodiment of the present invention;
FIG. 4 is a schematic illustration of a progress indication graphic in the form of a circular ring provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of a columnar progress indication graph according to an embodiment of the present invention;
fig. 6 is a structural diagram of a progress indicating device according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Through analysis of user requirements, the requirement of a user on a progress indication is generally how long the whole task needs, if the total time is acceptable, the user waits for the task to be ended, if the total time is not acceptable, the user directly ends the task, and in the process of task processing, the user does not care how fast the task needs to be processed and how slow the task needs to be processed. Therefore, the core idea of the present invention is that a total duration of task processing is requested and obtained from a processor at the beginning of a progress indication, the progress indication is performed in an acceleration manner or a uniform manner at a first duration before the total duration, during which it is ensured that the progress does not stop, and a remaining progress amount is performed in a uniform manner, and a progress speed of the progress indication in the first duration before is greater than a progress speed of the progress indication of the remaining progress amount. Further, the actual remaining time length of the task processing may be requested and acquired from the processor in the process of progress indication of the remaining progress amount, and the progress speed of the progress indication may be determined and updated with the actual remaining time length.
Preferably, to improve user experience, a faster rate of progress is typically used in the former portion relative to the latter portion, and thus may be set at the top t1Completed within time S1At last t2Completed within time S2Of at least
Furthermore, if the former part is in acceleration mode, then at least t is guaranteed to be fast relative to the later part1The speed at the moment is greater than the speed value adopted by the last part of constant speed.
t1Velocity of time of day Vt 1 = V 0 + a × t 1 = 2 S 1 - a × t 1 2 2 t 1 = S 1 t 1 + 1 2 a × t 1 , t1The velocity after the moment of time being at mostIs therefore preferably provided
Such as half the time to complete 90% of the entire schedule in an acceleration manner and the other half the time to complete the remaining 10% of the entire schedule in a speed manner.
The method provided by the present invention is described in detail with reference to the embodiments shown in fig. 1 and fig. 3, in the embodiment shown in fig. 1, the former part of the progress indication is performed in an acceleration manner, and the latter part is performed in a speed manner, for example, preferably, in order to improve the user experience, in this embodiment, the acceleration of the former part is a preset negative integer, that is, the speed of the progress indication is decreased in the former part, and the progress indication is performed at a constant speed in the latter part.
FIG. 1 is a flowchart of a method provided by an embodiment of the present invention, in which a progress indication graph is assumed to be a progress bar, during a previous part of time t1In an acceleration mode1Progress indication of progress amount, remaining progress amount S2The progress indication is carried out in a constant speed mode, and the task to be processed is a page loading task. As shown in fig. 1, the method may include the steps of:
in 101, the total time required to complete the page load task is requested and obtained from the processor.
When a page is just loaded, that is, when task processing starts, interaction with the processor needs to be performed once, the total time required for completing the page loading task is requested from the processor, and the processor can determine the total time required for loading the task according to the size of the page to be loaded and the current network speed.
In 102, the progress amount S is completed according to the preset acceleration a and the acceleration mode1And a duration t for completing progress indication in an acceleration manner1Determining an initial speed V of the progress indication in the progress bar0
The calculation mode of physics is mainly adopted in the step, and the initial speed V is0Comprises the following steps:
V 0 = 2 S 1 - a × t 1 2 2 t 1
in 103, based on the obtained initial velocity V0Updating the progress indication in the progress bar once every other progress updating time t, wherein the updated progress indication reaches Sti
Wherein, S ti = V 0 × ti + 1 2 a × ti 2
ti is the ith update time.
If at time t1The progress indication is completed in a uniform speed mode, so the initial speed isThe initial velocity is at t1The internally adopted speed is used for updating the progress indication in the progress bar every other progress updating time t, and the updated progress indication reaches Sti=V0×ti。
At 104, when time t is completed1Then, the actual remaining time t for completing the page loading task is requested and obtained from the processor3
Due to the fact that in the actual task processing processThere may be some conditions, such as unstable performance, unstable network speed, etc., which result in a change of the total duration of the task processing, i.e. the duration t should be remained originally2Becomes the actual remaining time period t3Thus, an interaction with the processor is performed once more in this step.
In 105, the residual advance quantity S is utilized2And the actual remaining time period t3The progress speed V of the progress indication is determined and updated.
In this step, the determined V needs to ensure that the progress indication is updated at a constant speed by the V, and the remaining duration t can be determined3Complete the current page load task internally, then
At 106, at the end t3Within the time of (2), the progress indication of the progress bar is updated every time t, and the updated progress indication reaches S for the tj timetj
Wherein S istj=S1+ V × tj, tj is the jth update time in the residual progress amount, i.e., t1Followed by the jth update time.
If there is an ideal situation in which the total duration of the task processing is the initially determined total duration, excluding the situation in which the actual task processing causes the total duration of the task processing to change, step 104 may not be executed, i.e., the time t does not have to be completed1Then, the actual remaining time t for completing the page loading task is requested and obtained from the processor3Instead, the residual advance quantity S is used2And a remaining duration t2Determining the speed of progress V of the progress indication, at that timeIn addition, even if step 104 is executed, the actual remaining duration t is requested and acquired from the processor3May also be equal to t2
In the flow shown in FIG. 1, at time t1Thereafter, that is, after step 105 and before the loading task is finished, the actual remaining time length for completing the page loading task may be requested and obtained from the processor at regular intervals, and then the progress speed of the progress indication may be determined and updated by using the remaining progress amount and the actual remaining time length. That is, the stage of progress indication at a constant speed may be divided into several parts, and each part updates the progress speed of the progress indication, i.e. t, according to the actual remaining duration requested and obtained from the processor1In the latter part of the uniform velocity, there may be several different velocities of progression.
In the above embodiment, in addition to the use scenario of the above web page, the present invention may also be applied to a use scenario such as a mobile phone APP (application), a PC client, a system operation, and the like, for example, when antivirus software performs virus scanning, the progress of virus scanning is indicated, and when a large file is deleted, the progress of file deletion is indicated. The generation and updating of the progress bar may be performed by a control or component in an application, client, operating system, or the like.
One specific example is illustrated for the embodiment shown in FIG. 1, assuming that the first 90% of progress is made in the first half of the time in an acceleration mode, where the acceleration a is-2 mm/s2And completing the next 10% progress in a uniform speed mode in the second half time, wherein the size of the page to be loaded is 1000KB, and the current network speed is 100 KB/s.
The method comprises the steps of acquiring the size and the network speed of a loaded page when the page is loaded at the beginning, and determining the total time length required for completing a page loading task to beThe duration of updating the progress in the acceleration mode is 5s, and the duration of updating the progress in the constant speed mode is 5 s.
If the total length of the progress bar is 100mm, the length of progress made in the acceleration manner is 90mm, and the length of progress made in the uniform velocity manner is 10 mm.
Initial speed of progress indication in progress bar V 0 = 2 × 90 - ( - 2 ) × 5 2 2 × 5 = 23 ( mm / s ) .
If the progress indication in the progress bar is updated every 1s, then at 1s the updated progress indication reaches 23 × 1+0.5 × (-2) × 12=22(mm)。
At time 2s, the updated progress indicator reaches 23 × 2+0.5 × (-2) × 22=42(mm)。
At time 3s, the updated progress indicator reaches 23 × 3+0.5 × (-2) × 32=60(mm)。
At time 4s, the updated progress indicator reaches 23 × 4+0.5 × (-2) × 42=76(mm)。
At time 5s, the updated progress indicator reaches 23 × 5+0.5 × (-2) × 52=90(mm)。
At the end of the 5 th s, the current speed is
Requesting and acquiring the actual remaining time for completing the page loading task from the processor, and if the acquired actual remaining time is the same as the originally planned time and is also the remaining 5s, performing progress indication in a constant speed mode in the following 5s, and when the 6 th s is reached, updating the progress indication: 90+2 × 1 ═ 92.
At time 7s, the updated progress indication reaches: 90+2 × 2 ═ 94.
At time 8s, the updated progress indication reaches: 90+2 × 3 ═ 96.
At time 9s, the updated progress indication reaches: 90+2 × 4 ═ 98.
At time 10s, the updated progress indication reaches: 90+2 × 2 ═ 100.
The update status of the progress indication in the corresponding progress bar may be as shown in fig. 2, each interval represents the updated progress status, the lower number is the corresponding update time, e.g. 1 corresponds to 1 st s, 2 corresponds to 2 nd s, and so on.
In the above example, assuming that the actual remaining time length for completing the page loading task is requested and obtained from the processor again at the time of 8s as 4s, the progress speed of the progress indication is determined and updated by using the obtained actual remaining time length, and the progress speed is updated toThen a rate of progress of 1mm/s is followed and at 9s the updated progress indication reaches 96+1 × 1-97.
At time 10s, the updated progress indication reaches: 96+1 × 2 ═ 98.
At 11s, the updated progress indication reaches: 96+1 × 3 ═ 99.
At 12s, the updated progress indication reaches: 96+1 × 4 is 100. At this point, the page load task is complete.
Besides the bar-shaped progress bar, the progress indication graph can also be in the form of a circle (as shown in fig. 3), a ring (as shown in fig. 4), a column (as shown in fig. 5) and the like, and when the progress indication graph is in the form of a circle or a ring and the like, the acceleration is angular acceleration, the progress amount is an angle, the speed is an angular speed, and the process is not changed. In addition, when the progress is indicated in the progress indication graphic, an animation form may be adopted.
The above is a detailed description of the method provided by the present invention, and the following is a detailed description of the apparatus provided by the present invention.
Fig. 6 is a structural diagram of a progress indicating apparatus provided in an embodiment of the present invention, where the apparatus may be disposed in a mobile phone APP, a PC client, an application system, or a web page in the form of a plug-in or a component, as shown in fig. 6, the apparatus may include: a duration requesting unit 01, a first indicating unit 02, and a second indicating unit 03.
The duration request unit 01 is responsible for requesting and acquiring the total duration required for completing the task from the processor when the task starts. The processor will determine the total length of time required to complete the task based on the current system performance and task conditions at the request of the device and return to the device.
The first indicating unit 02 is responsible for indicating the progress of the task in an acceleration mode or a constant speed mode within the first time period. The second indicating unit 03 is responsible for indicating the progress of the remaining progress amount of the task in a constant speed manner after the first time period. In the process of completing the task, the progress speed of the progress indication is not zero, namely the user is not given the feeling of stopping the task progress, and the progress speed of the progress indication in the first time length is greater than the progress speed of the progress indication of the residual progress amount, namely the user is given the feeling of quickly progressing the task in the initial stage of the task.
When the first indicating unit 02 performs the progress indication in a uniform speed manner, the basis can beDetermining a first time period t1Velocity V adopted internally0In which S is1Is a preset first time length t1An indication of internally completed progress;updating the progress indication in the progress indication graph once every progress update time t, the tthiThe next updated progress indication reaches Sti:Sti=V0×ti(ii) a ti is the ith update time; wherein,S2indicating for progress a graphic except for S1The remaining amount of progress, other than t, being the total duration1The remaining time period outside.
When the first indicating unit 02 performs the progress indication in the acceleration mode, the progress indication can be based onDetermining an initial velocity V of a progress indication in a graph of progress indications0In which S is1Is a preset first time length t1The internally completed advance amount, a, is a preset acceleration; updating the progress indication in the progress indication graph once every other progress updating time t, wherein the updated progress indication reaches Sti ti is the ith update time.
If it is assumed that the processing of the tasks by the processor is ideal, i.e. the total time length used coincides with the total time length sent to the progress indicating means, the second indicating unit 03 may: the progression rate V adopted for determining the remaining progression amount isS2Indicating for progress a graphic except for S1The amount of remaining progress out, t2The remaining time length except the first time length in the total time length is obtained; updating the progress indication in the progress indication graph once every time t, wherein the updated progress indication reaches S for the tj timetj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
However, in the actual task processing process, there may be some conditions, such as unstable performance, unstable environment, etc., which cause the total time length required for the processor to process the task to change, and for this case, preferably, when the first time length is completed, the time length request unit 01 may request and acquire the actual remaining time length t for completing the task from the processor3And will t3Is supplied to the second indicating unit 03.
The second indicating unit 03 receives the above t3Thereafter, the progress rate V of the progress indication is determined and updated toS2Indicating for progress a graphic except for S1An amount of remaining progress beyond; after the first time period, updating the progress indication in the progress indication graph once every progress updating time t, the tth timejThe next updated progress indication reaches Stj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
In the subsequent process of performing the progress indication at a constant speed, the actual remaining duration may also be requested and obtained from the processor at intervals, and then the progress speed of the progress indication is determined and updated by using the remaining progress amount and the actual remaining duration. I.e. at some update time after the first time period, the time duration requesting unit 01 may also request and obtain the actual remaining time duration t for completing the task from the processor4And will t4Is supplied to the second indicating unit 03.
The second indicating unit 03 receives the above t4Then, updating the progress indication in the progress indication graph once every other progress updating time t, and enabling the tx-th updated progress indication to reach Stx:StxS + V × tx, S being received t4The amount of progress indicated in the timeline indicating graph, tx being the received t4The x-th update thereafterTime.
When the progress indication is performed by the first indication unit 02 and the second indication unit 03, the progress of the task may be reflected in a progress indication graph, and the progress indication graph may include, but is not limited to, a bar, a circle, a ring, a column, and the like. In addition, when the progress is indicated in the progress indication graphic, an animation form may be adopted.
As can be seen from the above description, the above method and apparatus provided by the present invention can have the following advantages:
1) the invention does not need to request the processor and acquire the processing state of the current task at intervals of schedule updating time, requests the processor and acquires the total time required by the task when the task starts, and does not need to send the request to the processor within at least the first time, thereby reducing the influence on the performance of the processor and reducing the resource waste.
2) In the process of processing the task, the condition that the progress indication is suspended because the processor cannot respond to the request in time is reduced, so that the user cannot suspend the progress indication visually, and the user is prevented from mistakenly thinking that the task is halted or stuck.
3) On the one hand the progress indication is not paused and on the other hand the progress of the progress indication in the front time is faster, so that the user has a visually pleasant feeling that the task processing is fast.
4) In the process of indicating the uniform speed progress in the later stage, the actual remaining time length can be requested and obtained from the processor to correct the speed of the progress indication, so that the total time length of the progress indication is consistent with the actual processing time length.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A progress indication method, comprising:
when a task starts, requesting a processor and acquiring the total time length required for completing the task;
performing progress indication of the task in an acceleration mode or a constant speed mode within a first time period;
after the first time length, performing progress indication of the residual progress amount of the task in a constant speed mode;
in the process of completing the task, the progress speed of the progress indication is not zero, and the progress speed of the progress indication in the first duration is greater than the progress speed of the progress indication of the remaining progress amount.
2. The method of claim 1, wherein indicating the progress of the task in a constant speed manner within the first time period comprises:
according toDetermining a first time period t1Velocity V adopted internally0Wherein said S1Is a preset first time length t1An indication of internally completed progress;
updating the progress indication in the progress indication graph once every other progress updating time t, wherein the updated progress indication reaches Sti:Sti=V0× ti, wherein ti is the ith update time;
wherein, theSaid S2Indicating for progress a graphic except for S1The remaining amount of progress, other than t, being the total duration1The remaining time period outside.
3. The method of claim 1, wherein indicating the progress of the task in an accelerated manner over a first period of time comprises:
according toDetermining an initial velocity V of a progress indication in a graph of progress indications0Wherein said S1Is a preset first time length t1The internally completed advance amount, wherein a is a preset acceleration;
updating the progress indication in the progress indication graph once every other progress updating time t, wherein the updated progress indication reaches StiThe ti is the ith update time;
wherein,said S2Indicating for progress a graphic except for S1The amount of remaining progress out, t2Dividing t by the total duration1The remaining time period outside.
4. The method according to claim 1, 2 or 3, wherein the indicating the progress of the residual progress amount of the task in a uniform speed manner comprises:
the rate of progress V employed in determining the amount of remaining progress isSaid S2Indicating for progress a graphic except for S1The amount of remaining progress beyond, t2The remaining time length except the first time length in the total time length is obtained;
updating the progress indication in the progress indication graph once every time t, wherein the updated progress indication reaches S for the tj timetj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
5. The method according to claim 1, 2 or 3, wherein the indicating the progress of the residual progress amount of the task in a uniform speed manner comprises:
when the first time length is finished, requesting and acquiring the actual residual time length t for finishing the task from the processor3
Determining and updating the progress rate V of the progress indication toSaid S2Indicating for progress a graphic except for S1An amount of remaining progress beyond;
updating the progress indication in the progress indication graph after the first time period every progress update time t, the tth timejThe next updated progress indication reaches Stj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
6. The method of claim 5, further comprising:
at a certain update time after the first time, requesting and obtaining the actual remaining time t for completing the task from the processor4
Determining and updating the progress rate V of the progress indication toSaid S3Indicating a current amount of progress remaining in the graph for the progress;
updating the progress indication in the progress indication graph once every progress update time t from the certain update time, the tthxThe next updated progress indication reaches Stx:StxAnd the step of updating the current time by the certain updating time is S + V × tx, wherein S is the progress amount corresponding to the certain updating time, and tx is the xth updating time after the certain updating time.
7. A progress indicating device, characterized in that the device comprises:
the time length request unit is used for requesting the processor and acquiring the total time length required by completing the task when the task starts;
the first indicating unit is used for indicating the progress of the task in an acceleration mode or a constant speed mode within a first time period;
a second indicating unit, configured to perform progress indication of the remaining progress amount of the task in a constant speed manner after the first duration;
and in the process of completing the task, the progress speed of the progress indication is not zero, and the progress speed of the progress indication in the first duration is greater than the progress speed of the progress indication of the residual progress amount.
8. Device according to claim 7, characterized in that said first indication unit is specifically adapted to be dependent onDetermining a first time period t1Velocity V adopted internally0Wherein said S1Is a preset first time length t1An indication of internally completed progress; updating the progress indication in the progress indication graph once every progress update time t, the tthiThe next updated progress indication reaches Sti:Sti=V0×ti(ii) a The ti is the ith update time;
wherein, theSaid S2Indicating for progress a graphic except for S1The remaining amount of progress, other than t, being the total duration1The remaining time period outside.
9. Device according to claim 7, characterized in that said first indication unit is specifically adapted to be dependent onDetermining an initial velocity V of a progress indication in a graph of progress indications0Wherein said S1Is a preset first time length t1The internally completed advance amount, wherein a is a preset acceleration; updating the progress indication in the progress indication graph once every other progress updating time t, wherein the updated progress indication reaches StiThe ti is the ith update time;
wherein,said S2Indicating for progress a graphic except for S1The amount of remaining progress out, t2Dividing t by the total duration1The remaining time period outside.
10. Device according to claim 7, 8 or 9, wherein the second indication unit is specifically configured to determine the speed of progress V adopted by the residual progress amount asSaid S2Indicating for progress a graphic except for S1The amount of remaining progress beyond, t2The remaining time length except the first time length in the total time length is obtained; updating the progress indication in the progress indication graph once every time t, wherein the updated progress indication reaches S for the tj timetj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
11. The apparatus according to claim 7, 8 or 9, wherein the duration requesting unit is further configured to request and obtain the actual remaining duration t for completing the task from the processor when the first duration is completed3And combining said t3Is provided to the second indicating unit;
the second indicating unit is specifically configured to determine and update a progress speed V of the progress indication toSaid S2Indicating for progress a graphic except for S1An amount of remaining progress beyond; after the first time length, updating one at each schedule updating time tProgress indications in a graph of sub-progress indications, tthjThe next updated progress indication reaches Stj:Stj=S1+ V × tj, tj is the jth update time after the first time period.
12. The apparatus of claim 11, wherein the duration requesting unit is further configured to request and obtain the actual remaining duration t for completing the task from the processor at an update time after the first duration4And combining said t4Is provided to the second indicating unit;
the second indicating unit is further used for receiving the t4Then, the progress indication in the progress indication graph is updated once every progress updating time t, the tthxThe next updated progress indication reaches Stx:Stx(ii) S + V × tx, S being the reception of t4The amount of progress already indicated in the progress indication graph, tx being the amount of progress received4The x-th update time thereafter.
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 true CN105988913A (en) 2016-10-05
CN105988913B 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)

Cited By (7)

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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141953A (en) * 2011-04-01 2011-08-03 奇智软件(北京)有限公司 Method and device for showing progress bar
US20130116976A1 (en) * 2011-11-03 2013-05-09 The Georgia Tech Research Corporation Method, computer program, and information processing apparatus for analyzing performance of computer system
CN103488555A (en) * 2011-04-01 2014-01-01 北京奇虎科技有限公司 Progress bar implementation method and device
CN103530145A (en) * 2011-04-01 2014-01-22 北京奇虎科技有限公司 Progress bar setting method and device
CN103631571A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Method and device for controlling progress bar
CN104199643A (en) * 2014-08-08 2014-12-10 可牛网络技术(北京)有限公司 Progress bar loading control method and device and electronic equipment
CN104375862A (en) * 2014-11-11 2015-02-25 北京搜狗科技发展有限公司 Progress bar showing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141953A (en) * 2011-04-01 2011-08-03 奇智软件(北京)有限公司 Method and device for showing progress bar
CN103488555A (en) * 2011-04-01 2014-01-01 北京奇虎科技有限公司 Progress bar implementation method and device
CN103530145A (en) * 2011-04-01 2014-01-22 北京奇虎科技有限公司 Progress bar setting method and device
US20130116976A1 (en) * 2011-11-03 2013-05-09 The Georgia Tech Research Corporation Method, computer program, and information processing apparatus for analyzing performance of computer system
CN103631571A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Method and device for controlling progress bar
CN104199643A (en) * 2014-08-08 2014-12-10 可牛网络技术(北京)有限公司 Progress bar loading control method and device and electronic equipment
CN104375862A (en) * 2014-11-11 2015-02-25 北京搜狗科技发展有限公司 Progress bar showing method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874171A (en) * 2017-02-15 2017-06-20 联想(北京)有限公司 A kind of task run monitoring method, device and electronic equipment
CN106874171B (en) * 2017-02-15 2020-10-30 联想(北京)有限公司 Task operation monitoring method and device and electronic equipment
WO2019051779A1 (en) * 2017-09-15 2019-03-21 深圳传音通讯有限公司 Display method and display device for smart terminal
CN107861787A (en) * 2017-11-19 2018-03-30 叮联信息技术有限公司 Event schdules statistics and display methods based on the filling of figure color
CN108037968A (en) * 2017-12-01 2018-05-15 东软集团股份有限公司 Display methods, device, storage medium and the electronic equipment of implementation progress
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
CN109828826A (en) * 2019-01-10 2019-05-31 新华三云计算技术有限公司 A kind of polling method of Task Progress, apparatus and system
CN113296860A (en) * 2021-05-13 2021-08-24 武汉联影医疗科技有限公司 Progress bar refreshing method and device, computer equipment and readable storage medium
CN113296860B (en) * 2021-05-13 2022-07-29 武汉联影医疗科技有限公司 Progress bar refreshing method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN105988913B (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN105988913B (en) A kind of tempo instructions method and process indicating device
EP3140732B1 (en) Startup accelerating method and apparatus
US9990229B2 (en) Scheduling method and apparatus for applying laxity correction based on task completion proportion and preset time
US11429448B2 (en) Background job processing framework
KR20140147095A (en) Instantiable gesture objects
CN105843819B (en) Data export method and device
CN111796824A (en) Page loading method, device, server and medium
US20150058586A1 (en) Guarded Memory Access in a Multi-Thread Safe System Level Modeling Simulation
JP2015515703A (en) Auto-complete content
US9253228B2 (en) Cloud computing method, computing apparatus and server using the same
CN111158673A (en) Method and device for configuring rotating disc movable page
US20140344325A1 (en) Asynchronous content updates in the background for improved application performance
JP6344010B2 (en) Production plan creation support program, production plan creation support method, and production plan creation support device
CN111078383A (en) Timed task management method, device, equipment and storage medium
US20150199315A1 (en) Systems and methods for animating collaborator modifications
CN108037968B (en) Execution progress display method and device, storage medium and electronic equipment
CN112799768A (en) Method and device for realizing horse race lamp and electronic equipment
CN109101429B (en) Method and device for debugging browser page of set top box
US20200110528A1 (en) Rendering on a mobile device
CN112099699B (en) Icon moving method and device, computing equipment and readable storage medium
CN110381370B (en) Animation processing method and device, terminal and storage medium
CN111222066A (en) Pull-down component system and method for event processing and searching
TW201413480A (en) System and method for managing network navigation
CN115292642B (en) Page display method and device, storage medium and computer equipment
CN107454151B (en) Control method and device for loading assembly

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