CN105988913A - Progress indication method and device - Google Patents
Progress indication method and device Download PDFInfo
- 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
- tempo
- duration
- tempo instructions
- instructions
- time
- 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
Links
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
[technical field]
The present invention relates to Computer Applied Technology field, refer to particularly to a kind of tempo instructions method and progress
Showing device.
[background technology]
Processor is when processing some relatively time-consuming tasks, it will usually in real time with the form such as picture, animation
The display process speed of task, completeness, residue are not fully complete task amount and/or possible time to be processed,
This display mode is referred to as tempo instructions, and the most frequently used embodiment mode is progress bar.
Existing tempo instructions mode is to update time t every certain progress ask to processor and obtain
The processor process state to current task, is mapped on progress bar in real time by process state.To download
As a example by one file, ask to processor every 1s and obtain the processor download state to this document, as
Fruit downloads to the 10% of whole task, then the progress updating progress bar is 10%, if downloading to whole
The 50% of business, then the progress updating progress bar is 50%.But, below this tempo instructions mode exists
Defect:
One, needs are asked to processor continually during processor process task and obtain process
State, can bring extra burden to processor, wastes system resource.
Two, processor is failing to timely respond to the request of progress indicator, and the progress of being likely to result in refers to
Showing that the progress on device does not updates, appear to " deadlock " or " card " user, user is it is possible to enter
The operations such as row ends task, and actually this task is normally processed, the operation of user is exactly mistake
Operation.
[summary of the invention]
In view of this, the invention provides a kind of tempo instructions method and process indicating device, in order to joint
About system resource, reduces the faulty operation of user.
Concrete technical scheme is as follows:
The invention provides a kind of tempo instructions method, the method includes:
When task starts, ask and obtained total duration that described required by task is wanted to processor;
Acceleration mode or at the uniform velocity mode is used to carry out the tempo instructions of described task in the first duration;
After described first duration, the progress of the residue progress amount that at the uniform velocity mode carries out described task is used to refer to
Show;
During completing described task, the tempo of tempo instructions is not zero, and described first duration
The tempo of interior tempo instructions is more than the tempo of the tempo instructions of described residue progress amount.
According to the present invention one preferred implementation, at the uniform velocity mode is used to carry out described task in the first duration
Tempo instructions includes:
FoundationDetermine the first duration t1Speed V of interior employing0, wherein said S1For default
One duration t1The tempo instructions amount inside completed;
Update time t every progress and update the tempo instructions in a tempo instructions figure, update for the ti time
After tempo instructions arrive Sti: Sti=V0×ti;Described ti is that i-th updates the time;
Wherein, describedDescribed S2For tempo instructions figure removes S1Outside residue progress amount,
For described total duration except t1Outside residual time length.
According to the present invention one preferred implementation, acceleration mode is used to carry out described appointing in the first duration
The tempo instructions of business includes:
FoundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, Qi Zhongsuo
State S1For default at the first duration t1The progress amount inside completed, described a is default acceleration;
Update time t every progress and update the tempo instructions in a tempo instructions figure, update for the ti time
After tempo instructions arrive Sti:Described ti is that i-th updates the time;
Wherein,Described S2For tempo instructions figure removes S1Outside residue progress amount,
t2For described total duration removes t1Outside residual time length.
According to the present invention one preferred implementation, at the uniform velocity mode is used to carry out the residue progress amount of described task
Tempo instructions include:
Determine that the tempo V that described residue progress amount is used isDescribed S2For tempo instructions figure
Except S in shape1Outside residue progress amount, described t2For in described total duration in addition to described first duration
Residual time length;
Update time t every progress and update the tempo instructions in a tempo instructions figure, update for the tj time
After tempo instructions arrive Stj: Stj=S1When+V × tj, tj are the jth renewal after described first duration
Between.
According to the present invention one preferred implementation, at the uniform velocity mode is used to carry out the residue progress amount of described task
Tempo instructions include:
When completing described first duration, ask to described processor and obtained described task reality remain
Remaining duration t3;
Determine and update the tempo V of tempo instructions and beDescribed S2For tempo instructions figure removes S1
Outside residue progress amount;
After described first duration, update time t every progress and update the progress in a tempo instructions figure
Instruction, tjTempo instructions after secondary renewal arrives Stj: Stj=S1After+V × tj, tj are described first duration
Jth update the time.
According to the present invention one preferred implementation, the method also includes:
Certain after described first duration updates the time, asks to described processor and has obtained described
The real surplus duration t of task4;
Determine and update the tempo V of tempo instructions and beDescribed S3For current in tempo instructions figure
Residue progress amount;
From certain renewal time described, update time t every progress and update in a tempo instructions figure
Tempo instructions, txTempo instructions after secondary renewal arrives Stx: Stx=S+V × tx, described S be described certain
The progress amount that the renewal time is corresponding, the x-th after tx is certain renewal time described updates the time.
Present invention also offers a kind of process indicating device, this device includes:
Duration request unit, for when task starts, asks to processor and has obtained described task institute
The total duration needed;
First indicating member, for using acceleration mode or at the uniform velocity mode to carry out described appointing in the first duration
The tempo instructions of business;
Second indicating member, for after described first duration, uses at the uniform velocity mode to carry out described task
The tempo instructions of residue progress amount;
Wherein, during completing described task, the tempo of tempo instructions is not zero, and described
In one duration, the tempo of tempo instructions is more than the tempo of the tempo instructions of described residue progress amount.
According to the present invention one preferred implementation, described first indicating member, specifically for foundation
Determine the first duration t1Speed V of interior employing0, wherein said S1For default at the first duration t1Inside complete
Tempo instructions amount;Update time t every progress and update the tempo instructions in a tempo instructions figure, ti
Tempo instructions after secondary renewal arrives Sti: Sti=V0×ti;Described ti is that i-th updates the time;
Wherein, describedDescribed S2For tempo instructions figure removes S1Outside residue progress amount,
For described total duration except t1Outside residual time length.
According to the present invention one preferred implementation, described first indicating member, specifically for foundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein said S1For in advance
If at the first duration t1The progress amount inside completed, described a is default acceleration;When progress updates
Between t update the tempo instructions in a tempo instructions figure, the tempo instructions arrival S after updating for the ti timeti: Described ti is that i-th updates the time;
Wherein,Described S2For tempo instructions figure removes S1Outside residue progress amount,
t2For described total duration removes t1Outside residual time length.
According to the present invention one preferred implementation, described second indicating member, specifically for determining described remaining
The tempo V that remaining progress amount is used isDescribed S2For tempo instructions figure removes S1Outside
Residue progress amount, described t2For residual time length in addition to described first duration in described total duration;Every
Progress updates time t and updates the tempo instructions in a tempo instructions figure, the progress after updating for the tj time
Instruction arrives Stj: Stj=S1+ V × tj, tj are that the jth after described first duration updates the time.
According to the present invention one preferred implementation, described duration request unit, it is additionally operable to work as described
During one duration, ask and obtained the real surplus duration t of described task to described processor3, and will
Described t3It is supplied to described second indicating member;
Described second indicating member, specifically for determining and updating the tempo V of tempo instructions beInstitute
State S2For tempo instructions figure removes S1Outside residue progress amount;After described first duration, Mei Gejin
Degree renewal time t updates the tempo instructions in a tempo instructions figure, tjTempo instructions after secondary renewal arrives
Reach Stj: Stj=S1+ V × tj, tj are that the jth after described first duration updates the time.
According to the present invention one preferred implementation, described duration request unit, it is additionally operable at described first duration
Afterwards certain updates the time, asks and obtained the real surplus duration of described task to described processor
t4, and by described t4It is supplied to described second indicating member;
Described second indicating member, is additionally operable to receive described t4After, update time t every progress and update
Tempo instructions in tempo instructions figure, the tempo instructions after updating for the tx time arrives Stx: Stx=S+V
× tx, described S are for receiving described t4The progress amount indicated in Shi Suoshu tempo instructions figure, tx
For receiving described t4X-th afterwards updates the time.
As can be seen from the above technical solutions, the present invention please to processor without updating the time every progress
Seek and obtain the process state of current task, reduce the impact on processor performance, decrease resource wave
Take.In the processing procedure of task, reduce because processor cannot timely respond to request and tempo instructions is temporary
Situation about stopping so that user's visually tempo instructions will not suspend, therefore avoids user and takes for " dead
Machine " or " card " and end task.
[accompanying drawing explanation]
The flow chart of the tempo instructions method that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of the progress bar that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the circular tempo instructions figure that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of the tempo instructions figure of the form of annular rings that Fig. 4 provides for the embodiment of the present invention;
The schematic diagram of the tempo instructions figure of the column that Fig. 5 provides for the embodiment of the present invention;
The structure chart of the process indicating device that Fig. 6 provides for the embodiment of the present invention.
[detailed description of the invention]
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and specifically
Embodiment describes the present invention.
Through the analysis to user's request, find that user is typically whole task and needs the demand of tempo instructions
How long if total time is acceptable, the end of task is waited for, if the time is not
Acceptable, then can directly end task, and for when task processes processes the most assorted
Time process slow, be not very concerned about.Therefore, the core concept of the present invention is, at tempo instructions
Ask and obtains total duration of task process time initial to processor, before this total duration the first duration with
Acceleration mode or at the uniform velocity mode carry out tempo instructions, and period ensures that progress does not stops, residue progress amount with
At the uniform velocity mode carries out tempo instructions, and in front first duration, the tempo of tempo instructions is more than residue progress amount
The tempo of tempo instructions.Further, in the process that residue progress amount is carried out tempo instructions
In can ask to processor and obtain task process real surplus duration, determine with real surplus duration
And update the tempo of tempo instructions.
Preferably, in order to improve user's impression, generally use relative to rear portion progress in front portion
One speed faster, therefore can be arranged on front t1S is completed in time1Progress amount, at rear t2Time
Inside complete S2Progress amount, at least a part of which
Further, if front portion uses acceleration mode, in order to ensure front portion phase
Speed faster is used for rear portion progress, then at least need to ensure t1After the speed in moment is more than
The velocity amplitude that a part at the uniform velocity uses.
t1The speed in moment t1Speed after moment
It is at mostTherefore it is preferably provided with
As half the time completes the 90% of whole progress in acceleration mode, second half time is in speed mode
Complete the residue 10% of whole progress.
The method provided the present invention below in conjunction with the embodiment shown in Fig. 1 and Fig. 3 is described in detail,
Front portion in tempo instructions is carried out in acceleration mode in the embodiment shown in fig. 1, rear portion
As a example by speed mode is carried out, it is preferable that in order to improve Consumer's Experience, in the present embodiment, previous portion
The negative integer that the acceleration employing divided is preset, i.e. the decrease of speed of tempo instructions during front portion,
During rear portion, tempo instructions uses at the uniform velocity.
The method flow diagram that Fig. 1 provides for the embodiment of the present invention, assumes tempo instructions figure in this embodiment
Shape is progress bar, at front portion time t1In carry out front S in acceleration mode1The tempo instructions of progress amount,
Residue progress amount S2Tempo instructions carry out at the uniform velocity mode, pending task is page loading tasks.
As shown in fig. 1, the method may comprise steps of:
In 101, ask to processor and obtained the total duration required for page loading tasks.
When just starting to load the page, when i.e. task processes and starts, need to carry out once mutual with processor,
Having asked the total duration required for page loading tasks to processor, processor can be according to page to be loaded
The size in face and current network speed determine the total duration required for loading tasks.
In 102, progress amount S completed according to the acceleration a preset, acceleration mode1With with accelerate
The duration t of degree mode schedule instruction1, determine the initial velocity V of tempo instructions in progress bar0。
Mainly use physical calculation, initial velocity V0For:
In 103, according to the initial velocity V obtained0, update time t every progress and update a progress
Tempo instructions in bar, the tempo instructions after updating for the ti time arrives Sti。
Wherein,
Ti is that i-th updates the time.
If at time t1Interior employing at the uniform velocity mode schedule indicates, then initial velocityShould
Initial velocity is exactly at t1The speed of interior employing, updates time t every progress and updates in a progress bar
Tempo instructions, the tempo instructions after updating for the ti time arrives Sti=V0×ti。
In 104, when it is completed between t1Time, ask to processor and obtained page loading tasks
Real surplus duration t3。
Due in actual task processing procedure, it is understood that there may be some situations, such as unstable properties, net
The situations such as speed is unstable, the total duration needed for causing task to process changes, when i.e. originally should remain
Long t2, become real surplus duration t3, therefore, carry out the most mutual with processor the most again.
In 105, utilize residue progress amount S2With real surplus duration t3Determine and update tempo instructions
Tempo V.
In this step, the V determined needs to ensure at the uniform velocity to update tempo instructions with this V, it is possible to surplus
Remaining duration t3Inside complete current page loading tasks, then
In 106, at rear t3Time in, every duration t update a progress bar tempo instructions,
Tempo instructions after updating for the tj time arrives Stj。
Wherein, Stj=S1+ V × tj, tj are that the jth in residue progress amount updates time, namely t1It
After jth update the time.
If getting rid of the total duration needed for task can be caused in actual task processing procedure to process to change
Situation, there is also ideal state, i.e. total duration is exactly the total duration initially determined that out, then can also
Do not perform step 104, i.e. need not be at deadline t1Time, ask to processor and obtained the page to add
The real surplus duration t of load task3, but utilize residue progress amount S2With residual time length t2Determine that progress refers to
The tempo V shown, nowEven if it addition, perform step 104, asking also to processor
The real surplus duration t obtained3It is likely to equal to t2。
In flow process shown in Fig. 1, at time t1Afterwards, the most after step 105 and loading tasks terminates
Before, it is also possible to ask to processor at regular intervals and obtained page loading tasks reality remain
Remaining duration, then utilizes residue progress amount and real surplus duration to determine and updates the progress speed of tempo instructions
Degree.If it is to say, can be stem portion by the uniform velocity carrying out the stage cutting of tempo instructions, every part be the most all
According to the real surplus duration asked to processor and obtain to update the tempo of tempo instructions, i.e. t1
Constant speed part afterwards, it is understood that there may be several different tempos.
In the above-described embodiments, except being applied to the use scene of above-mentioned webpage, it is also possible to be applied to such as
Mobile phone A PP (application), pc client, system operation etc. use scene, such as antivirus software entering
During row virus scan, the progress for virus scan indicates, more such as when deleting big file, pin
The progress deleting file indicates.The generation of progress bar and renewal can be by application, client or behaviour
Make the control in system etc. or assembly performs.
For embodiment shown in Fig. 1 for a specific example, it is assumed that to accelerate in the first half time
Degree mode completes the progress of front 90%, and wherein acceleration a is-2mm/s2, with even in the later half time
Speed mode complete after 10% progress, page-size to be loaded is 1000KB, and current network is fast
Degree is 100KB/s.
Carry out page loading at the beginning, just get size and the network speed of the page of loading, determined
Become required for page loading tasks total time a length ofSo update progress in acceleration mode
Time a length of 5s, update time a length of 5s of progress at the uniform velocity mode.
If the total length of progress bar is 100mm, then a length of with the progress that acceleration mode completes
90mm, a length of 10mm of progress completed at the uniform velocity mode.
The initial velocity of tempo instructions in progress bar
If the tempo instructions in 1s updates a progress bar, then when 1s, after renewal
Tempo instructions arrives: 23 × 1+0.5 × (-2) × 12=22 (mm).
When 2s, the tempo instructions after renewal arrives: 23 × 2+0.5 × (-2) × 22=42 (mm).
When 3s, the tempo instructions after renewal arrives: 23 × 3+0.5 × (-2) × 32=60 (mm).
When 4s, the tempo instructions after renewal arrives: 23 × 4+0.5 × (-2) × 42=76 (mm).
When 5s, the tempo instructions after renewal arrives: 23 × 5+0.5 × (-2) × 52=90 (mm).
At the end of 5s, present speed is
Ask and obtained the real surplus duration of page loading tasks to processor, it is assumed that now obtain
Real surplus duration identical with the duration of originally plan, be also residue 5s, then at 5s below with even
Speed mode carries out tempo instructions, and when 6s, the tempo instructions after renewal arrives: 90+2 × 1=92.
When 7s, the tempo instructions after renewal arrives: 90+2 × 2=94.
When 8s, the tempo instructions after renewal arrives: 90+2 × 3=96.
When 9s, the tempo instructions after renewal arrives: 90+2 × 4=98.
When 10s, the tempo instructions after renewal arrives: 90+2 × 2=100.
In corresponding progress bar, the renewal situation of tempo instructions can as shown in Figure 2, in fig. 2, each
Every representing the progress status updated, the numeral of lower section is the corresponding renewal time, such as 1 corresponding 1s,
2 corresponding 2s, the like.
In the above-described example, it is assumed that when 8s, ask to processor again and obtained page loading times
A length of 4s during the real surplus being engaged in, then utilize this real surplus duration obtained to determine and update progress and refer to
The tempo shown, is updated toUse the tempo of 1mm/s the most later,
When 9s, the tempo instructions after renewal arrives: 96+1 × 1=97.
When 10s, the tempo instructions after renewal arrives: 96+1 × 2=98.
When 11s, the tempo instructions after renewal arrives: 96+1 × 3=99.
When 12s, the tempo instructions after renewal arrives: 96+1 × 4=100.So far, the page loads and appoints
Business completes.
Tempo instructions figure is in addition to using the form of this strip of progress bar, it is also possible to use circle
(as shown in Figure 3), annulus (as shown in Figure 4), the form such as column (as shown in Figure 5),
When using the forms such as circle or annulus, above-mentioned acceleration uses angular acceleration, and progress amount uses angle,
Speed uses angular velocity, it is achieved flow process does not changes.It addition, in tempo instructions figure indicating progress
Time, can be to use the form of animation.
It is above the detailed description that method provided by the present invention is carried out, below to provided by the present invention
Device is described in detail.
The structure chart of the process indicating device that Fig. 6 provides for the embodiment of the present invention, this device can be with plug-in unit
Or the form of assembly is arranged in mobile phone A PP, pc client, application system or web page, as
Shown in Fig. 6, this device may include that duration request unit the 01, first indicating member 02 and second refers to
Show unit 03.
Duration request unit 01 is responsible for when task starts, and asks to processor and obtained required by task to want
Total duration.Processor can the request of device, determined according to current systematic function and task situation
Become total duration that required by task is wanted, and return to this device.
First indicating member 02 is responsible in front first duration using acceleration mode or at the uniform velocity mode to carry out task
Tempo instructions.Second indicating member 03 is responsible for after the first duration, uses at the uniform velocity mode to carry out task
The tempo instructions of residue progress amount.Wherein, during completing task, the tempo of tempo instructions is not
It is zero, i.e. will not give user the impression stopped with task progress, and the progress speed of tempo instructions in the first duration
Degree more than the tempo of tempo instructions of residue progress amount, i.e. in starting stage of task to user with task
The impression made much progress.
When the first indicating member 02 uses mode at the uniform velocity to carry out tempo instructions, can foundationReally
Fixed first duration t1Speed V of interior employing0, wherein S1For default at the first duration t1The progress inside completed refers to
The amount of showing;Update time t every progress and update the tempo instructions in a tempo instructions figure, tiAfter secondary renewal
Tempo instructions arrive Sti: Sti=V0×ti;Ti is that i-th updates the time;Wherein,S2For entering
Except S in degree indicating graphic1Outside residue progress amount, for total duration except t1Outside residual time length.
When the mode that the first indicating member 02 uses acceleration carries out tempo instructions, can foundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein S1For default
At the first duration t1The progress amount inside completed, a is default acceleration;Update time t every progress and update one
Tempo instructions in secondary tempo instructions figure, the tempo instructions after updating for the ti time arrives Sti: Ti is that i-th updates the time.
If it is assumed that processor is ideal state to the process of task, total duration i.e. used be sent to this
Total duration of process indicating device is consistent, then the second indicating member 03 can be in the following ways: determines
The tempo V that residue progress amount is used isS2For tempo instructions figure removes S1Outside surplus
Remaining progress amount, t2For residual time length in addition to the first duration in total duration;Time t is updated every progress
Updating the tempo instructions in a tempo instructions figure, the tempo instructions after updating for the tj time arrives Stj:
Stj=S1+ V × tj, tj are that the jth after the first duration updates the time.
But in actual task processing procedure, it is understood that there may be some situations, such as unstable properties, ring
The situations such as border is unstable, cause processor to change, the total duration required for task process for this
The situation of kind, it is preferable that when completing the first duration, duration request unit 01 can be asked also to processor
Obtain the real surplus duration t of task3, and by t3It is supplied to the second indicating member 03.
Second indicating member 03 receives above-mentioned t3After, determine and update the tempo V of tempo instructions and be
S2For tempo instructions figure removes S1Outside residue progress amount;After the first duration, update every progress
Time t updates the tempo instructions in a tempo instructions figure, tjTempo instructions after secondary renewal arrives Stj:
Stj=S1+ V × tj, tj are that the jth after the first duration updates the time.
Follow-up at the uniform velocity carry out tempo instructions during, it is also possible at set intervals to processor ask also
Obtain real surplus duration, then utilize residue progress amount and real surplus duration determine and update tempo instructions
Tempo.Certain after the first duration i.e. updates the time, and duration request unit 01 can also be to place
Reason device is asked and has obtained the real surplus duration t of task4, and by t4It is supplied to the second indicating member 03.
Second indicating member 03 receives above-mentioned t4After, update progress of time t renewal every progress and refer to
Tempo instructions in diagram shape, the tempo instructions after updating for the tx time arrives Stx: Stx=S+V × tx, S
For receiving t4Time tempo instructions figure in the progress amount that indicated, tx is for receiving t4Xth afterwards
The individual renewal time.
The first above-mentioned indicating member 02 and the second indicating member 03 when carrying out tempo instructions, Ke Yi
Reflecting the progress of task in tempo instructions figure, the tempo instructions figure of employing can include but not limited to bar
The forms such as shape, circle, annulus, column.It addition, in tempo instructions figure during indicating progress, permissible
Use the form of animation.
By above description it can be seen that the said method of present invention offer and device can possess following excellent
Point:
1) present invention is without asking to processor every the progress renewal time and obtain the place of current task
Reason state, when task starts, the total duration asking to processor and obtaining required by task to be wanted, at least exist
All without sending request to processor again in first duration, reduce the impact on processor performance, reduce
The wasting of resources.
2) in the processing procedure of task, reduce because processor cannot timely respond to request and progress refers to
Show the situation of time-out so that user's visually tempo instructions will not suspend, therefore avoid user by mistake with
End task for " deadlock " or " card ".
3) on the one hand tempo instructions will not suspend, and on the other hand in the time of front end, the progress of tempo instructions is relatively
Hurry up so that user visually has task to process happy impression quickly.
4) during the at the uniform velocity tempo instructions of back segment, can ask to processor and obtain real surplus
Duration revises the speed of tempo instructions, and the total duration making tempo instructions is consistent with actual treatment duration.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit
In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in one
In individual unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds
The form of SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer
In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers
Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.)
Or processor (processor) performs the part steps of method described in each embodiment of the present invention.And it is aforementioned
Storage medium include: USB flash disk, portable hard drive, read only memory (Read-Only Memory, ROM),
Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can
To store the medium of program code.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in
Within the scope of protection of the invention.
Claims (12)
1. a tempo instructions method, it is characterised in that the method includes:
When task starts, ask and obtained total duration that described required by task is wanted to processor;
Acceleration mode or at the uniform velocity mode is used to carry out the tempo instructions of described task in the first duration;
After described first duration, the progress of the residue progress amount that at the uniform velocity mode carries out described task is used to refer to
Show;
During completing described task, the tempo of tempo instructions is not zero, and described first duration
The tempo of interior tempo instructions is more than the tempo of the tempo instructions of described residue progress amount.
Method the most according to claim 1, it is characterised in that use at the uniform velocity mode in the first duration
The tempo instructions carrying out described task includes:
FoundationDetermine the first duration t1Speed V of interior employing0, wherein said S1For default
One duration t1The tempo instructions amount inside completed;
Update time t every progress and update the tempo instructions in a tempo instructions figure, update for the ti time
After tempo instructions arrive Sti: Sti=V0×ti;Described ti is that i-th updates the time;
Wherein, describedDescribed S2For tempo instructions figure removes S1Outside residue progress amount,
For described total duration except t1Outside residual time length.
Method the most according to claim 1, it is characterised in that use in the first duration and accelerate
Degree mode carries out the tempo instructions of described task and includes:
FoundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, Qi Zhongsuo
State S1For default at the first duration t1The progress amount inside completed, described a is default acceleration;
Update time t every progress and update the tempo instructions in a tempo instructions figure, update for the ti time
After tempo instructions arrive Sti:Described ti is that i-th updates the time;
Wherein,Described S2For tempo instructions figure removes S1Outside residue progress amount,
t2For described total duration removes t1Outside residual time length.
4. according to the method described in claim 1,2 or 3, it is characterised in that use at the uniform velocity mode to enter
The tempo instructions of the residue progress amount of the described task of row includes:
Determine that the tempo V that described residue progress amount is used isDescribed S2For tempo instructions figure
Except S in shape1Outside residue progress amount, described t2For in described total duration in addition to described first duration
Residual time length;
Update time t every progress and update the tempo instructions in a tempo instructions figure, update for the tj time
After tempo instructions arrive Stj: Stj=S1When+V × tj, tj are the jth renewal after described first duration
Between.
5. according to the method described in claim 1,2 or 3, it is characterised in that use at the uniform velocity mode to enter
The tempo instructions of the residue progress amount of the described task of row includes:
When completing described first duration, ask to described processor and obtained described task reality remain
Remaining duration t3;
Determine and update the tempo V of tempo instructions and beDescribed S2For tempo instructions figure removes S1
Outside residue progress amount;
After described first duration, update time t every progress and update the progress in a tempo instructions figure
Instruction, tjTempo instructions after secondary renewal arrives Stj: Stj=S1After+V × tj, tj are described first duration
Jth update the time.
Method the most according to claim 5, it is characterised in that the method also includes:
Certain after described first duration updates the time, asks to described processor and has obtained described
The real surplus duration t of task4;
Determine and update the tempo V of tempo instructions and beDescribed S3For current in tempo instructions figure
Residue progress amount;
From certain renewal time described, update time t every progress and update in a tempo instructions figure
Tempo instructions, txTempo instructions after secondary renewal arrives Stx: Stx=S+V × tx, described S be described certain
The progress amount that the renewal time is corresponding, the x-th after tx is certain renewal time described updates the time.
7. a process indicating device, it is characterised in that this device includes:
Duration request unit, for when task starts, asks to processor and has obtained described task institute
The total duration needed;
First indicating member, for using acceleration mode or at the uniform velocity mode to carry out described appointing in the first duration
The tempo instructions of business;
Second indicating member, for after described first duration, uses at the uniform velocity mode to carry out described task
The tempo instructions of residue progress amount;
Wherein, during completing described task, the tempo of tempo instructions is not zero, and described
In one duration, the tempo of tempo instructions is more than the tempo of the tempo instructions of described residue progress amount.
Device the most according to claim 7, it is characterised in that described first indicating member, specifically uses
In foundationDetermine the first duration t1Speed V of interior employing0, wherein said S1For default first
Duration t1The tempo instructions amount inside completed;Update time t every progress and update entering in a tempo instructions figure
Degree instruction, tiTempo instructions after secondary renewal arrives Sti: Sti=V0×ti;Described ti is that i-th updates the time;
Wherein, describedDescribed S2For tempo instructions figure removes S1Outside residue progress amount,
For described total duration except t1Outside residual time length.
Device the most according to claim 7, it is characterised in that described first indicating member, specifically uses
In foundationDetermine the initial velocity V of tempo instructions in tempo instructions figure0, wherein said
S1For default at the first duration t1The progress amount inside completed, described a is default acceleration;Every progress
Renewal time t updates the tempo instructions in a tempo instructions figure, and the tempo instructions after updating for the ti time arrives
Sti:Described ti is that i-th updates the time;
Wherein,Described S2For tempo instructions figure removes S1Outside residue progress amount,
t2For described total duration removes t1Outside residual time length.
10. according to the device described in claim 7,8 or 9, it is characterised in that described second instruction
Unit, specifically for determining that the tempo V that described residue progress amount is used isDescribed S2For
Except S in tempo instructions figure1Outside residue progress amount, described t2For described total duration removes described first
Residual time length outside duration;Update time t every progress and update the progress in a tempo instructions figure
Instruction, the tempo instructions after updating for the tj time arrives Stj: Stj=S1+ V × tj, tj be described first duration it
After jth update the time.
11. according to the device described in claim 7,8 or 9, it is characterised in that described duration is asked
Unit, is additionally operable to when completing described first duration, asks to described processor and has obtained described appointing
The real surplus duration t of business3, and by described t3It is supplied to described second indicating member;
Described second indicating member, specifically for determining and updating the tempo V of tempo instructions beInstitute
State S2For tempo instructions figure removes S1Outside residue progress amount;After described first duration, Mei Gejin
Degree renewal time t updates the tempo instructions in a tempo instructions figure, tjTempo instructions after secondary renewal arrives
Reach Stj: Stj=S1+ V × tj, tj are that the jth after described first duration updates the time.
12. devices according to claim 11, it is characterised in that described duration request unit, also use
Update the time in certain after described first duration, ask to described processor and obtained described appointing
The real surplus duration t of business4, and by described t4It is supplied to described second indicating member;
Described second indicating member, is additionally operable to receive described t4After, update time t every progress and update once
Tempo instructions in tempo instructions figure, txTempo instructions after secondary renewal arrives Stx: Stx=S+V × tx,
Described S is for receiving described t4The progress amount indicated in Shi Suoshu tempo instructions figure, tx is for receiving
Described t4X-th afterwards updates the time.
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)
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)
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 |
-
2015
- 2015-02-27 CN CN201510089122.7A patent/CN105988913B/en active Active
Patent Citations (7)
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)
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 |
---|---|---|
CN105988913A (en) | Progress indication method and device | |
US9575652B2 (en) | Instantiable gesture objects | |
US10942715B2 (en) | Composable context menus | |
CN112558841B (en) | Application icon management method, computing device and readable storage medium | |
US20190073249A1 (en) | Message oriented middleware with integrated rules engine | |
CN104025185A (en) | Mechanism for Using a GPU Controller for Preloading Caches | |
US9817771B2 (en) | Guarded memory access in a multi-thread safe system level modeling simulation | |
CN111596903A (en) | Data processing method and device in rendering engine | |
US20120036471A1 (en) | Tool bars along lateral edges of a mobile computing device display | |
US7272712B1 (en) | Data structure and method for managing modules associated with a kernel | |
CN110377331B (en) | Monitoring method, device, equipment and storage medium for issuing application program | |
US11853752B2 (en) | Migration of web applications between different web application frameworks | |
EP3279795A1 (en) | Method and apparatus for deleting cloud host in cloud computing environment, server and storage medium | |
CN103136043A (en) | Method, system and network node for transferring asynchronous input and output (IO) | |
CN106302125A (en) | A kind of solicited message is responded method, Apparatus and system | |
CN110555181A (en) | Page cross-skip method and device | |
CN113721814A (en) | Electronic book page display method, computing equipment and computer storage medium | |
CN111858234A (en) | Task execution method, device, equipment and medium | |
CN105843597A (en) | Providing method and device for establishment information of tasks | |
JP2019021176A (en) | Data analysis system and data analysis method | |
JP4886626B2 (en) | Software product management system, method and program thereof | |
CN113806288A (en) | Data interaction method and device suitable for SoC (System on chip) cores and electronic equipment | |
JP5094938B2 (en) | Database device | |
CN104967920A (en) | Program issuing method and device | |
CN113805873A (en) | Codeless workflow definition method, terminal device and computer-readable storage medium |
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 |