CN103488555B - Progress bar implementation method and device - Google Patents

Progress bar implementation method and device Download PDF

Info

Publication number
CN103488555B
CN103488555B CN201310412837.2A CN201310412837A CN103488555B CN 103488555 B CN103488555 B CN 103488555B CN 201310412837 A CN201310412837 A CN 201310412837A CN 103488555 B CN103488555 B CN 103488555B
Authority
CN
China
Prior art keywords
uniform velocity
task
progress bar
interval
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.)
Active
Application number
CN201310412837.2A
Other languages
Chinese (zh)
Other versions
CN103488555A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310412837.2A priority Critical patent/CN103488555B/en
Priority claimed from CN 201110082742 external-priority patent/CN102141953B/en
Publication of CN103488555A publication Critical patent/CN103488555A/en
Application granted granted Critical
Publication of CN103488555B publication Critical patent/CN103488555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a kind of progress bar implementation method, including: calculate the deadline of task;Arranging at the uniform velocity interval in the progress bar that task is corresponding, described at the uniform velocity interval accounts for more than half of progress bar total length;In described at the uniform velocity interval, control progress bar according to described task completion time at the uniform velocity advance.The present invention can allow progress bar at the uniform velocity, smoothly advance, and solves progress bar during advancing, occurs because suspending the problem advanced when waiting subtask completes, and in most cases, and progress bar advances sometimes fast and sometimes slow problem.

Description

Progress bar implementation method and device
Present patent application is filing date April 1, Application No. in 2011 201110082742.X, the Chinese invention patent of entitled " exhibiting method of a kind of progress bar and device " The divisional application of application.
Technical field
The present invention relates to the technical field that progress bar processes, particularly relate to a kind of progress bar realization side Method and a kind of progress bar realize device.
Background technology
Progress bar i.e. computer is when processing file, real-time, processes file with graphic form display Speed, completeness, residue is not fully complete the size of file, and may need the process time, respectively Plant in computer software, through expressing the execution process of certain task frequently with progress bar.Progress bar Typically show with rectangle strip, have powerful connections and prospect.Original state background has certain length, Prospect from 0 or starts to increase length less than certain value of background length, the same with background when rising to Time long, expression task completes.
Existing progress bar advance scheme is usually appoints the son that is assigned to impartial or unequal for progress bar In business, often completing a subtask, progress bar increases forward the percentage ratio that this subtask is corresponding, directly Completing to whole task, progress bar rises to the length the same with background and represents that task completes.With multiple As a example by the progress bar of file processed represents, for a current batch file, first obtain the quantity of file Count, then arranges ingoing silver in the range of 0 to count, often completes a file, just marches forward one Step.
But, this existing progress bar represents scheme and there is following two problem in practice:
The first, when running into certain subtask and not completing, if subtask does not export to enter accordingly Degree, then progress bar can stagnate, the sensation blocked to user.
The second, when to each subtask allocated length, if unreasonable distribution, progress can be caused The advance process speed of bar is inconsistent, sometimes fast and sometimes slow.
Therefore, a technical problem that those skilled in the art urgently solve is presently required exactly: carry Go out a kind of progress bar implementation, in order to allow progress bar at the uniform velocity, smoothly advance, solve progress bar During advancing, occur because suspending the problem advanced, and most feelings when waiting subtask completes Under condition, the problem that progress bar advance is sometimes fast and sometimes slow.
Summary of the invention
The technical problem to be solved is to provide a kind of progress bar implementation method, in order to allow into Degree bar at the uniform velocity, smoothly advance, solves progress bar during advancing, occurs because of waiting subtask The problem suspending advance when completing, and in most cases, the problem that progress bar advance is sometimes fast and sometimes slow.
Present invention also offers a kind of progress bar and realize device, in order to ensure that said method is in practice Application and realization.
In order to solve the problems referred to above, the embodiment of the invention discloses a kind of progress bar implementation method, bag Include:
The deadline of calculating task;
Arranging at the uniform velocity interval in the progress bar that task is corresponding, described at the uniform velocity interval accounts for progress bar overall length More than half of degree;And, the progress bar that task is corresponding arranges buffering interval, described buffering The progress bar that interval and at the uniform velocity interval composition is complete;
In described at the uniform velocity interval, control progress bar according to described task completion time at the uniform velocity advance;
If described task completed within the time corresponding at the uniform velocity interval, then progress bar proceeds to directly to Completion status;
If described task can not complete within the time corresponding at the uniform velocity interval, then control progress bar and exist Easy abeadl in buffering is interval, until proceeding to completion status when task completes.
Preferably, the deadline of described task determined according to the time loading this task last time;
Or, the deadline of described task completes according to the corresponding task of record in the webserver Time determines.
Preferably, the described at the uniform velocity interval corresponding time is more than or equal to described task completion time, Described progress bar includes N number of subinterval, and at the uniform velocity interval includes more than or equal to x%*N Ge Zi district Between, described x is any value more than or equal to 50, less than or equal to 100.
Preferably, if the deadline of current task is t, progress bar includes N number of subinterval of equalization, Described at the uniform velocity interval includes that x%*N subinterval, the time corresponding to described at the uniform velocity interval are t*z, Described z is default time coefficient;
Described progress bar according to the speed of (x%*N)/(t*z) in described at the uniform velocity interval at the uniform velocity before Enter.
Preferably, described at the uniform velocity interval accounting for represents more than the 70% of interval, correspondingly, described buffering Interval accounts for and represents less than the 30% of interval.
Preferably, the described at the uniform velocity interval ratio accounting for progress bar total length, appointing according to described calculating Business deadline and actual error set.
Preferably, the described time corresponding at the uniform velocity interval is that described calculated task completes Time.
Preferably, described at the uniform velocity interval end position is provided with call tag, is used for pointing out user Calculated task completion time.
The embodiment of the invention also discloses a kind of progress bar and realize device, including:
Time Calculation module, for calculating the deadline of task;
At the uniform velocity interval arranges module, at the uniform velocity interval described for arranging in the progress bar that task is corresponding At the uniform velocity interval accounts for more than half of progress bar total length;
At the uniform velocity advance control module, in described at the uniform velocity interval according to described task completion time Control progress bar at the uniform velocity to advance;
Buffering interval arranges module, for arranging buffering interval, institute in the progress bar that task is corresponding State the progress bar that the interval and at the uniform velocity interval composition of buffering is complete;
Completion status control module, for described task within the time corresponding at the uniform velocity interval complete Cheng Shi, progress bar proceeds to directly to completion status;
Easy abeadl control module, being used for can not be in the time corresponding at the uniform velocity interval in described task When inside completing, control progress bar Easy abeadl in buffering is interval, until proceeding to when task completes Completion status.
Preferably, the deadline of described task determined according to the time loading this task last time;Or Person, the deadline of described task is true according to the corresponding task completion time of record in the webserver Fixed.
Preferably, the described at the uniform velocity interval corresponding time is more than or equal to described task completion time, Described progress bar includes N number of subinterval, and at the uniform velocity interval includes more than or equal to x%*N Ge Zi district Between, described x is any value more than or equal to 50, less than or equal to 100.
Preferably, if the deadline of current task is t, progress bar includes N number of subinterval of equalization, Described at the uniform velocity interval includes that x%*N subinterval, the time corresponding to described at the uniform velocity interval are t*z, Described z is default time coefficient;
Described progress bar according to the speed of (x%*N)/(t*z) in described at the uniform velocity interval at the uniform velocity before Enter.
Preferably, described at the uniform velocity interval accounting for represents more than the 70% of interval, correspondingly, described buffering Interval accounts for and represents less than the 30% of interval.
Preferably, the described at the uniform velocity interval ratio accounting for progress bar total length, appointing according to described calculating Business deadline and actual error set.
Preferably, the described time corresponding at the uniform velocity interval is that described calculated task completes Time.
Preferably, described at the uniform velocity interval end position is provided with call tag, is used for pointing out user Calculated task completion time.
Compared with prior art, the invention have the advantages that
1, the embodiment of the present invention is at the uniform velocity interval by arranging in progress bar, is precalculated by employing Task completion time and the speed that calculates of at the uniform velocity interval distance, control progress bar at the uniform velocity At the uniform velocity, smoothly advance in interval rather than control progress bar according to the performance of subtask Advance.Such that it is able to solution progress bar is during advancing, occur because of temporary when waiting subtask completes The problem stopping advancing, task carries out very well to allow user feel;Can also solve in most cases, The problem that progress bar advance is sometimes fast and sometimes slow, brings user extraordinary experience.
2, the embodiment of the present invention can also arrange at the uniform velocity interval and buffering interval in progress bar, passes through The speed that the task completion time determined and at the uniform velocity interval distance calculate, controls progress bar and exists At the uniform velocity in interval at the uniform velocity, smoothly advance.If task completed within the time corresponding at the uniform velocity interval, Then progress bar proceeds to directly to completion status, if task can not be within the time corresponding at the uniform velocity interval Complete, then control progress bar Easy abeadl in buffering is interval, until having proceeded to when task completes One-tenth state.Thus it is possible not only to allow progress bar at the uniform velocity, smoothly advance, it is also possible to solve because of currently Calculate abnormal problem that is inaccurate and that cause task time, make user obtain preferably experience.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of progress bar implementation method embodiment 1 of the present invention
Fig. 2 is the flow chart of a kind of progress bar implementation method embodiment 2 of the present invention;
Fig. 3 is the structured flowchart that a kind of progress bar of the present invention realizes device embodiment 1;
Fig. 4 is the structured flowchart that a kind of progress bar of the present invention realizes device embodiment 2.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, below in conjunction with The present invention is further detailed explanation for the drawings and specific embodiments.
One of core idea of the embodiment of the present invention is, arranges at the uniform velocity interval in progress bar, logical Cross the task completion time determined and speed that at the uniform velocity interval distance calculates, control progress bar In at the uniform velocity interval at the uniform velocity, smoothly advance.
With reference to Fig. 1, it is shown that the flow chart of a kind of progress bar implementation method embodiment 1 of the present invention, Specifically may comprise steps of:
Step 101, the deadline of calculating task;
In one preferred embodiment of the invention, described task completion time can add according to last time The time carrying this required by task calculates;In practice, can record that every subtask completes time Between, it is saved in this locality after record, to calculate the reference of this task completion time as next time.Due to The performance of PC equipment can be along with hardware longevity, the factor such as the software change of installation, along with the speed of service More and more slowly, if the time using this task of the last time loading to complete completes as current task The calculating reference value of time, can make progress bar more accurately reflect the progress performed of going out on missions.
As another kind of example, described task completion time can obtain from the webserver, i.e. net Network server collects the deadline loading this task of multiple clients, when certain client needs Time, then corresponding task completion time is supplied to client as calculating the current task deadline Reference.
As a kind of example being more highly preferred to, multiple client can be preserved in the webserver Task loads finishing time information and the parameter configuration of corresponding client, described parameter configuration Information can be the overall evaluation and test information of device hardware performance, it is also possible to joins for concrete device hardware Confidence ceases, it is also possible to for the overall evaluation and test information etc. of systematic function, those skilled in the art in equipment According to practical situation, arbitrarily to select be all feasible, the present invention to this without being any limitation as.
Such as, in the webserver, the information of record is as shown in the table:
In this case, when the task of execution, the webserver can be according to appointing that client is submitted to Business load information, and, the configuration parameter information of active client, obtain corresponding task and complete Time.Such as with reference to upper table, the task load information that client is submitted to is wooden horse killing task, visitor The configuration parameter information of family end be hardware performance scoring be 85 points, then the webserver extract correspondence Task loaded required time 40 minutes, return to active client as calculate current task The reference value of deadline.
As a kind of example of concrete application, the deadline of described task can also be by statistics one In the section time, current device performs the time that this task is spent, and then carries out calculating obtaining;Also may be used To calculate current according to certain computation rule according to the hardware environment of current device and/or system environments Equipment completes the time of this task;Those skilled in the art use any one to calculate according to practical situation Mode, as used empirical value etc., the present invention to this without being any limitation as.
Step 102, arrange in the progress bar that task is corresponding at the uniform velocity interval, described at the uniform velocity interval account for into More than half of degree bar total length;
In one preferred embodiment of the invention, described at the uniform velocity interval can arrange to account for progress bar More than 70%, according to practical situation, described at the uniform velocity interval can also be according to the total length of progress bar Arranging, it is also feasible at the uniform velocity interval will arranging to account for the 100% of progress bar.As concrete application A kind of example, the described at the uniform velocity interval ratio accounting for progress bar total length can be complete according to described task One-tenth time and actual error set, and wherein, described actual error can be appointed according to the last time of record The business deadline determines, it is also possible to according to the error of multiple client process tasks that server is collected Record determines, the invention is not limited in this regard.Certainly, described at the uniform velocity interval setting can also depend on Arbitrarily adjusting according to practical situation, this is not restricted by the present invention.
Step 103, in described at the uniform velocity interval according to described task completion time control progress bar at the uniform velocity Advance.
For example, it is assumed that the deadline of current task is t, progress bar includes N number of subinterval of equalization, Described at the uniform velocity interval includes that x%*N subinterval, the time corresponding to described at the uniform velocity interval are t*z, Described z is default time coefficient;
In this case, then pace v1 of progress bar can be calculated by below equation:
V1=(x%*N)/(t*z)
In this example, described progress bar then at the uniform velocity can advance in described at the uniform velocity interval according to v1.
Another kind of example as the present invention, it is assumed that the deadline of current task is t, progress bar bag Including N number of subinterval of equalization, described at the uniform velocity interval includes x%*N subinterval;In this situation Under, described progress bar can also according to the speed of (x%*N)/t in described at the uniform velocity interval at the uniform velocity before Enter.
Certainly, above-mentioned control progress bar at the uniform velocity advances and method is solely for example, art technology Personnel use any one method to be feasible according to practical situation, the present invention to this without being limited System.
In implementing, the embodiment of the present invention can also comprise the following steps:
If the described task of step 104 can complete within the time corresponding at the uniform velocity interval, then progress bar Proceed to directly to completion status.In implementing, can arrange described at the uniform velocity interval corresponding time Between more than or equal to described task completion time, described progress bar includes N number of subinterval, and institute is at the uniform velocity Interval includes that, more than or equal to x%*N subinterval, described x is more than or equal to 50, less than or Any value equal to 100.
Application the present embodiment, progress bar can at the uniform velocity interval at the uniform velocity, smoothly advance, thus Can solve progress bar of the prior art advance during, occur because of waiting subtask complete time Suspending the problem advanced, user can be allowed to feel, and task carries out very well;Most feelings can also be solved Under condition, the problem that progress bar advance is sometimes fast and sometimes slow, bring user extraordinary experience.
In implementing, it is also possible at described at the uniform velocity interval end position, call tag is set, For pointing out user calculated task completion time, described call tag can be at progress bar The call tag generated while generating and showing, i.e. residing that at the uniform velocity interval end position is arranged Information;Described call tag can also be for advancing at the uniform velocity interval end position at progress bar Time eject information.Described call tag can allow user know current task more intuitively Implementation progress.
One of core idea of the embodiment of the present invention is, arranges at the uniform velocity interval gentle in progress bar Punching interval, the speed calculated by the task completion time calculated and at the uniform velocity interval distance, come Control progress bar at the uniform velocity interval at the uniform velocity, smoothly advance.If task is at the uniform velocity interval corresponding Time in complete, then progress bar proceeds to directly to completion status, if task can not be at the uniform velocity interval Complete in the corresponding time, then control progress bar Easy abeadl in buffering is interval, until task Completion status is proceeded to when completing.
With reference to Fig. 2, it is shown that the flow chart of a kind of progress bar implementation method embodiment 2 of the present invention, Specifically may comprise steps of:
Step 201, the deadline t of calculating task;
The progress bar that step 202, the task that arranges are corresponding, described progress bar includes N number of subinterval;
Step 203, at the uniform velocity interval x%*N is set in described progress bar and buffering is interval (1-x%) *N;
In reality, described x can be any value more than 50, preferably greater than 70, and less than 100 Any value.
Step 204, the task completion time that foundation is calculated in described at the uniform velocity interval control progress bar At the uniform velocity advance;
If step 205a task completed within the time corresponding at the uniform velocity interval, then progress bar is direct Proceed to completion status.
For example, it is assumed that current the most at the uniform velocity interval includes 75% subinterval, at the uniform velocity corresponding to interval time Between be t*z, described z is default time coefficient, such as 1.2;If task is in this at the uniform velocity interval correspondence Complete in time, then progress bar is through the buffering interval of 25%, proceeds to directly to completion status, i.e. The foreground and background of progress bar is the longest.
If the described task of step 205b can not complete within the time corresponding at the uniform velocity interval, then control Progress bar processed is Easy abeadl in buffering is interval, until proceeding to completion status when task completes.
The speed that progress bar is used in buffering interval can be according in the at the uniform velocity interval speed used Slowing down in proportion, for example, it is assumed that v1 is the progress bar pace at the uniform velocity interval, v2 is progress Bar is at the pace in buffering interval, v2=1/2*v1, and this speed can also be according to practical situation Updating, as being updated once every second, the most in this example, progress bar each second is in the advance in buffering interval Speed, for the half of upper one second.The completion status until readvancing when task completes.
Certainly, the method that above-mentioned progress bar slows down in buffering interval can be appointed by those skilled in the art Meaning is arranged, the invention is not limited in this regard.
Application the present embodiment, is possible not only to allow progress bar at the uniform velocity, smoothly advance, it is also possible to solve The abnormal problem caused because current task Time Calculation is inaccurate, makes user obtain preferably and uses body Test.
For making those skilled in the art be more fully understood that the present invention, say below by way of a concrete example The bright present invention.
A1, user currently perform primary video transcoding task, according to the current hardware environment of user, System environments, the time of user's video code conversion last time task and the size of video file, calculate and work as The time of the video code conversion required by task of secondary execution is 8 minutes;
The progress bar that A2, the task that arranges are corresponding, described progress bar includes 10000 subintervals;
A3, in described progress bar before 75% be set at the uniform velocity interval, rear 25% is set to buffering Interval;
Deadline required for A4, foundation current task and default time coefficient 1.25, arranged The at the uniform velocity time corresponding to interval is 8*1.25=10 minute (600 seconds);
A5, task start perform, progress bar according to 7500/600 speed v 1 the most interval even Speed, smoothly advance, 12.5 subintervals of advance the most per second;
If A6 task performed in 10 minutes, then progress bar directly advances when task completes To completion status;
If A7 task was not carried out in 10 minutes, then calculate in buffering according to speed v 1 The interval speed v 2 advanced, if v2=1/2*v1, and be updated once every second, in this example, i.e. The pace of the 601st second is v1/2,6.25 subintervals of i.e. advancing;Within 601st second, speed is V1/2/2,3.125 subintervals of i.e. advancing, the like, during until task completes, progress bar is straight Connect and proceed to completion status.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as A series of combination of actions, but those skilled in the art should know, and the present invention is by being retouched The restriction of the sequence of movement stated because according to the present invention, some step can use other orders or Person is carried out simultaneously.Secondly, those skilled in the art also should know, reality described in this description Executing example and belong to preferred embodiment, involved action and module not necessarily present invention institute is necessary 's.
With reference to Fig. 3, it is shown that a kind of progress bar of the present invention realizes the structured flowchart of device embodiment 1, Specifically can include with lower module:
Time Calculation module 301, for calculating the deadline of task;
At the uniform velocity interval arranges module 302, at the uniform velocity interval for arranging in the progress bar that task is corresponding, Described at the uniform velocity interval accounts for more than half of progress bar total length;
At the uniform velocity advance control module 303, when completing according to described task in described at the uniform velocity interval Between control progress bar at the uniform velocity advance.
In one preferred embodiment of the invention, the demonstration device of described progress bar can also include With lower module:
Completion status control module 304, was used in described task within the time corresponding at the uniform velocity interval When completing, progress bar proceeds to directly to completion status.
In implementing, if the deadline arranging current task is t, progress bar represents interval bag Including N number of subinterval of equalization, described at the uniform velocity interval includes x%*N subinterval, described at the uniform velocity district Time corresponding between is t*z, and described z is default time coefficient;In this case, described Progress bar then at the uniform velocity can advance in described at the uniform velocity interval according to the speed of (x%*N)/(t*z).
As the preferred application example of one, described at the uniform velocity interval can account for more than the 70% of progress bar, Correspondingly, described buffering interval can account for less than the 30% of progress bar.
In implementing, the described at the uniform velocity interval ratio accounting for progress bar total length can also be according to institute State task completion time and actual error sets.
As a kind of example, the described time corresponding at the uniform velocity interval can be described in be calculated Task completion time.
In practice, it is also possible to call tag is set at described at the uniform velocity interval end position, is used for The prompting calculated task completion time of user.
Owing to the present embodiment essentially corresponds to the embodiment of the method shown in earlier figures 1, therefore the present embodiment Description in the most detailed part, may refer to the related description in previous embodiment, do not go to live in the household of one's in-laws on getting married at this State.
With reference to Fig. 4, it is shown that a kind of progress bar of the present invention realizes the structured flowchart of device embodiment 2, Specifically can include with lower module:
Time Calculation module 401, for calculating the deadline of task;
At the uniform velocity interval arranges module 402, at the uniform velocity interval for arranging in the progress bar that task is corresponding, Described at the uniform velocity interval accounts for more than half of progress bar total length;
Buffering interval arranges module 403, for arranging buffering interval in the progress bar that task is corresponding, Described buffering is interval and at the uniform velocity interval constitutes complete progress bar;
At the uniform velocity advance control module 404, for complete according to being calculated of task in described at the uniform velocity interval The one-tenth time controls progress bar and at the uniform velocity advances;
Completion status control module 405a, was used in described task in the time corresponding at the uniform velocity interval When inside completing, progress bar proceeds to directly to completion status.
Easy abeadl control module 405b, being used for can not be corresponding at the uniform velocity interval in described task When completing in the time, control progress bar Easy abeadl in buffering is interval, until before when task completes Enter completion status.
In implementing, the deadline of described task is true according to the time loading this task last time Fixed;Or, the deadline of described task completes according to the corresponding task of record in the webserver Time determines.
Owing to the present embodiment essentially corresponds to the embodiment of the method shown in earlier figures 2, therefore the present embodiment Description in the most detailed part, may refer to the related description in previous embodiment, do not go to live in the household of one's in-laws on getting married at this State.
It should be noted that module involved in apparatus of the present invention embodiment and system embodiment, Submodule and unit can be software, can be hardware, it is also possible to for the combination of software and hardware.
The present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: individual People's computer, server computer, handheld device or portable set, laptop device, many places Reason device system, system based on microprocessor, set top box, programmable consumer-elcetronics devices, net Network PC, minicomputer, mainframe computer, include the distributed meter of any of the above system or equipment Calculate environment etc..
The present invention can retouch in the general context of computer executable instructions State, such as program module.Usually, program module includes performing particular task or realizing specific taking out The routine of image data type, program, object, assembly, data structure etc..Can also be in distribution Formula computing environment puts into practice the present invention, in these distributed computing environment, by passing through communication network And connected remote processing devices performs task.In a distributed computing environment, program module May be located in the local and remote computer-readable storage medium including storage device.
Above a kind of progress bar implementation method provided by the present invention and a kind of progress bar are realized dress Putting and be described in detail, specific case used herein is to the principle of the present invention and embodiment Being set forth, the explanation of above example is only intended to help to understand method and the core thereof of the present invention Thought is thought;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, at tool All will change on body embodiment and range of application, in sum, this specification content is not It is interpreted as limitation of the present invention.

Claims (18)

1. a progress bar implementation method, comprising:
The deadline of calculating task;
At the uniform velocity interval and buffering interval is set in the progress bar that task is corresponding, described buffering interval and The progress bar that at the uniform velocity interval composition is complete, described at the uniform velocity interval accounts for more than half of progress bar total length;
The speed calculated according to described task completion time in described at the uniform velocity interval, controls progress Bar at the uniform velocity advances;
If described task can not complete within the time corresponding at the uniform velocity interval, then control progress bar and exist Easy abeadl in buffering is interval, until proceeding to completion status when task completes.
The most also include:
If described task completed within the time corresponding at the uniform velocity interval, then progress bar proceeds to directly to Completion status.
3. method as claimed in claim 1 or 2, wherein, the deadline foundation of described task The time loading this task last time determines;
Or, the deadline of described task completes according to the corresponding task of record in the webserver Time determines.
The most the method for claim 1, wherein the at the uniform velocity interval corresponding time described in is more than Or equal to described task completion time, described progress bar includes N number of subinterval, the at the uniform velocity interval bag of institute Including more than or equal to x%*N subinterval, described x is more than or equal to 50, less than or equal to 100 Any value.
5. method as claimed in claim 4, wherein, if the deadline of current task is t, Progress bar includes N number of subinterval of equalization, and described at the uniform velocity interval includes x%*N subinterval, institute At the uniform velocity time corresponding to interval of stating is t*z, and described z is default time coefficient;
Described progress bar according to the speed of (x%*N)/(t*z) in described at the uniform velocity interval at the uniform velocity before Enter.
6. method as claimed in claim 1 or 2, wherein, described at the uniform velocity interval accounts for and represents interval More than 70%, correspondingly, described buffering interval account for represent interval less than 30%.
7. method as claimed in claim 1 or 2, wherein, it is total that described at the uniform velocity interval accounts for progress bar The ratio of length, task completion time and actual error according to described calculating set.
8. method as claimed in claim 2, wherein, the described time corresponding at the uniform velocity interval For described calculated task completion time.
The most the method for claim 1, wherein end position at the uniform velocity interval described in is arranged There is call tag, be used for pointing out user calculated task completion time.
10. progress bar realizes a device, comprising:
Time Calculation module, for calculating the deadline of task;
At the uniform velocity interval arranges module, at the uniform velocity interval described for arranging in the progress bar that task is corresponding At the uniform velocity interval accounts for more than half of progress bar total length;
At the uniform velocity advance control module, in described at the uniform velocity interval according to described task completion time The speed controlling progress bar calculated at the uniform velocity advances;
Buffering interval arranges module, for arranging buffering interval, institute in the progress bar that task is corresponding State the progress bar that the interval and at the uniform velocity interval composition of buffering is complete;
Easy abeadl control module, being used for can not be in the time corresponding at the uniform velocity interval in described task When inside completing, control progress bar Easy abeadl in buffering is interval, until proceeding to when task completes Completion status.
11. devices as claimed in claim 10, wherein, also include:
Completion status control module, for described task within the time corresponding at the uniform velocity interval complete Cheng Shi, progress bar proceeds to directly to completion status.
12. devices as described in claim 10 or 11, wherein, the deadline of described task Determine according to the time loading this task last time;Or, the deadline of described task is according to network In server, the corresponding task completion time of record determines.
13. devices as claimed in claim 12, wherein, the described at the uniform velocity interval corresponding time is big In or equal to described task completion time, described progress bar includes N number of subinterval, institute is at the uniform velocity interval Including more than or equal to x%*N subinterval, described x is more than or equal to 50, is less than or equal to Any value of 100.
14. devices as claimed in claim 13, wherein, if the deadline of current task is t, Progress bar includes N number of subinterval of equalization, and described at the uniform velocity interval includes x%*N subinterval, institute At the uniform velocity time corresponding to interval of stating is t*z, and described z is default time coefficient;
Described progress bar according to the speed of (x%*N)/(t*z) in described at the uniform velocity interval at the uniform velocity before Enter.
15. devices as described in claim 10 or 11, wherein, described at the uniform velocity interval accounts for and represents Interval more than 70%, correspondingly, described buffering interval accounts for and represents less than the 30% of interval.
16. devices as described in claim 10 or 11, wherein, described at the uniform velocity interval accounts for progress The ratio of bar total length, task completion time and actual error according to described calculating set.
17. devices as claimed in claim 11, wherein, corresponding to described at the uniform velocity interval time Between be described calculated task completion time.
18. devices as claimed in claim 10, wherein, described at the uniform velocity interval stop bits installs It is equipped with call tag, is used for pointing out user calculated task completion time.
CN201310412837.2A 2011-04-01 2011-04-01 Progress bar implementation method and device Active CN103488555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310412837.2A CN103488555B (en) 2011-04-01 2011-04-01 Progress bar implementation method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310412837.2A CN103488555B (en) 2011-04-01 2011-04-01 Progress bar implementation method and device
CN 201110082742 CN102141953B (en) 2011-04-01 2011-04-01 Method and device for showing progress bar

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN 201110082742 Division CN102141953B (en) 2011-04-01 2011-04-01 Method and device for showing progress bar

Publications (2)

Publication Number Publication Date
CN103488555A CN103488555A (en) 2014-01-01
CN103488555B true CN103488555B (en) 2016-09-28

Family

ID=49828807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310412837.2A Active CN103488555B (en) 2011-04-01 2011-04-01 Progress bar implementation method and device

Country Status (1)

Country Link
CN (1) CN103488555B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778055B (en) * 2014-01-15 2020-11-06 腾讯科技(深圳)有限公司 Method and device for displaying progress bar
CN104199643B (en) * 2014-08-08 2017-12-29 可牛网络技术(北京)有限公司 Control method, device and the electronic equipment of progress bar loading
CN104375862B (en) * 2014-11-11 2018-07-31 北京搜狗科技发展有限公司 A kind of progress bar shows method and device
CN105988913B (en) * 2015-02-27 2019-06-28 阿里巴巴集团控股有限公司 A kind of tempo instructions method and process indicating device
CN106383704B (en) * 2016-08-31 2021-01-15 腾讯科技(深圳)有限公司 Progress bar data processing method and device
CN107678787A (en) * 2017-10-16 2018-02-09 中科信息安全共性技术国家工程研究中心有限公司 A kind of method that progress bar is realized based on activeMq
CN107807885B (en) * 2017-11-08 2021-03-30 广州酷狗计算机科技有限公司 Task information display method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0115415D0 (en) * 2001-06-23 2001-08-15 Pace Micro Tech Plc Linear progress bar graph
CN1232906C (en) * 2001-07-06 2005-12-21 华为技术有限公司 Code statistical tool of computer software program and its implementing method
KR100677137B1 (en) * 2004-10-01 2007-02-02 삼성전자주식회사 Method for displaying the state of data process
CN101295244B (en) * 2007-04-29 2012-05-30 鸿富锦精密工业(深圳)有限公司 Progress bar design system and method

Also Published As

Publication number Publication date
CN103488555A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103488555B (en) Progress bar implementation method and device
CN106647787B (en) The method and system of contexture by self task on a kind of Satellite
CN103530145B (en) progress bar setting method and device
CN102141953B (en) Method and device for showing progress bar
CN103685309B (en) The method for building up of Asynchronous Request queue towards map visualization tile service access
CN108509220B (en) Revit engineering calculation amount parallel processing method, device, terminal and medium
CN106919449A (en) The dispatch control method and electronic equipment of a kind of calculating task
CN107743636A (en) Graphics engine and environment for efficient real-time rendering ignorant figure in advance
CN104102513B (en) A kind of CUDA runtime parameter transparent optimization methods based on Kepler frameworks
CN110389816A (en) Method, apparatus and computer program product for scheduling of resource
CN114237835A (en) Task solving method and device
Brown et al. The role of interactive super-computing in using hpc for urgent decision making
US20150277434A1 (en) Production plan creation support method and production plan creation support apparatus
CN108898229B (en) Method and system for constructing machine learning modeling process
CN113552988A (en) Interface focus control method and device, electronic equipment and storage medium
US20150134312A1 (en) Evaluation of Service Delivery Models
CN114596009B (en) Computing resource deployment method, device, equipment and storage medium of intelligent computing center
CN108052378B (en) Profit-sensitive task scheduling method oriented to complex simulation workflow application
US9164668B2 (en) Defining object groups in 3D
EP3783547A1 (en) System and methods for reply date response and due date management in manufacturing
JP5499113B2 (en) Production plan adjustment support device, production plan adjustment support method, and production plan adjustment support program
CN104219064B (en) charging method and device
US10810524B1 (en) Dynamic resource prediction simulation
CN115344359A (en) Computing power resource allocation method, device, computer readable storage medium and equipment
JP2019079086A (en) Personnel management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right