Supercharge Your Innovation With Domain-Expert AI Agents!

A control method and device for a progress bar

A control method and a technology of a progress bar, applied in the field of computer security, can solve the problems such as the incompatibility of the progress execution time of the progress bar, the inability of the progress bar to accurately reflect the progress of the task execution, the inability of the progress bar to accurately reflect the execution of the task, etc., so as to optimize the use experience. Effect

Active Publication Date: 2017-09-22
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The existing control method of the first progress bar, because it takes a lot of time to calculate the number of tasks to be run and the total time of running all tasks before the task runs, this lengthens the actual time of the task running, and There are too many tasks processed by the terminal device at the same time, and the progress bar cannot accurately reflect the execution progress of the task; the second control method of the progress bar directly controls the running progress of the progress bar according to the task running time obtained through the statistical calculation of multiple experiments. Due to the different software and hardware environments of the user's terminal equipment, the progress of the progress bar does not match the task execution time. For example, the progress bar has reached the end or has been completed while the task is still being executed, making the progress of the progress bar inaccurate. reflect the performance of the task

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A control method and device for a progress bar
  • A control method and device for a progress bar
  • A control method and device for a progress bar

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] figure 1 It is a flowchart of a method for controlling a progress bar provided by an embodiment of the present invention, see figure 1 , the example includes:

[0055] 101. Obtain the last running time of the current task;

[0056]102. Obtain the current usage status of the terminal device, and determine the corresponding impact factor according to the current usage status;

[0057] 103. Obtain the current running time of the current task according to the last running time and impact factor of the current task;

[0058] 104. Control the current running progress of the progress bar according to the current running time of the current task.

[0059] Among them, the last running time of the current task is obtained, including:

[0060] When the current task is running for the first time, calculate the first running time of the current task separately, and obtain the total time of the first running of the current task;

[0061] When the current task is not running for ...

Embodiment 2

[0076] figure 2 It is a flowchart of a method for controlling a progress bar provided by an embodiment of the present invention. see figure 2 , the example includes:

[0077] 201. Obtain the last running time of the current task;

[0078] Specifically, if the current task is running for the first time, the first running time of the current task is calculated separately, and the total first running time of the current task is obtained;

[0079] Separately calculate the first running time of the current task, you can enable a separate thread to calculate the first running time of the current task;

[0080] According to the consumed computing time and the calculated first running time, the total first running time of the current task is obtained, and the first running time of the current task is recorded. For example, it takes 59 seconds to complete the current task, and the computing time consumed by the calculation is 18 seconds, so the total time for the first running of...

Embodiment 3

[0102] image 3 It is an embodiment of the present invention that provides a progress bar control device, see image 3 , the device consists of:

[0103] The first obtaining module 301 is used to obtain the last running time of the current task;

[0104] The second acquiring module 302 is configured to acquire the current usage status of the terminal device, and determine the corresponding impact factor according to the current usage status;

[0105] Calculation module 303, for obtaining the current running time of the current task according to the last running time and impact factor of the current task;

[0106] The control module 304 is configured to control the current running progress of the progress bar according to the current running time of the current task.

[0107] Wherein, the first acquisition module 301 specifically includes:

[0108] The first acquisition unit is used to separately calculate the first running time of the current task when the current task is ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a control method and device for a progress bar, belonging to the field of computer security. The method includes: acquiring the last running time of the current task; acquiring the current use state of the terminal device, and determining a corresponding impact factor according to the current use state; according to the last run time of the current task and the impact factor, The current running time of the current task is obtained; and the current running progress of the progress bar is controlled according to the current running time of the current task. The device includes: a first acquisition module, a second acquisition module, a calculation module and a recording module. The present invention continuously calculates the running time of the current task by acquiring the last running time of the current task and the current use state of the terminal device, so that the progress bar can accurately reflect the execution of the task, and optimize the user experience.

Description

technical field [0001] The invention relates to the field of computer security, in particular to a method and device for controlling a progress bar. Background technique [0002] The progress bar is a terminal device that displays the speed, degree of completion, remaining unfinished size, and possible processing time in the form of pictures in real time when the terminal device is processing the task to express the execution process of the task. The use of the progress bar is quite extensive, and it is used in data processing, file reading and writing, database processing, software installation and uninstallation, etc., and the application of the progress bar is reflected by the progress, so the progress of the progress bar control is also very important. [0003] At present, there are two main control methods for the progress bar: one is to first calculate the number of tasks to be run and the total time for running all tasks before the task is run, and then calculate the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 郭凌
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More