Click delay measurement method, device, storage medium and electronic device

By obtaining multiple time points of click operation on the terminal device and calculating the system response and transmission delay time, the problem of inaccurate click delay time measurement in the prior art is solved, and a more accurate evaluation of the touch function of the terminal device is achieved and improve.

CN114647336BActive Publication Date: 2025-02-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210251986.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-15
Publication Date
2025-02-25
Estimated Expiration
2042-03-15

AI Technical Summary

Technical Problem

The prior art when measuring the click delay time of the touch function of the terminal device, the method is general and not accurate enough, making it difficult to effectively evaluate or improve the touch function of the terminal device.

Method used

By obtaining the first time point of the click operation on the terminal device screen, the second time point of the system generating touch data, and the third time point of the application consuming touch data, the first delay time of the system response and the system transmission are calculated respectively The second delay time, which then locates and measures the various stages of the click delay time.

Benefits of technology

This makes the positioning and measurement of click delay time more accurate, making it easier to evaluate and improve the touch function of terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114647336B_ABST
    Figure CN114647336B_ABST
Patent Text Reader

Abstract

The present application discloses a click delay measurement method, device, storage medium and electronic device, wherein the method includes: obtaining a first time point of a click operation on a terminal device screen, a second time point at which a terminal device system generates touch data for the click operation and a third time point at which an application consumes the touch data, obtaining a first delay time of a system response based on the first time point and the second time point, and obtaining a second delay time of a system transmission based on the second time point and the third time point. By adopting the present application, by obtaining the delay time required for the system response and the delay time required for the system transmission, the positioning and measurement of each stage of the click delay time are made more accurate, which facilitates the evaluation and improvement of the touch function of the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a click delay measurement method, device, storage medium and electronic device. Background Art

[0002] There are more and more applications used on mobile phones, tablets and other terminal devices with touch functions. The touch function can make applications more convenient, especially game applications. Therefore, measuring the click delay time of the touch function of the terminal device can evaluate and improve the touch function of the terminal device. In the prior art, a high-speed camera is used to obtain the delay time from click to terminal device response. The obtained delay time is affected by the frame rate of the high-speed camera and is relatively general, which is not suitable as a basis for evaluating or improving the touch function of the terminal device. Summary of the invention

[0003] The embodiments of the present application provide a click delay measurement method, device, storage medium and electronic device, which can obtain the delay time required for system response and the delay time required for system transmission, so as to make the positioning and measurement of each stage of the click delay time more accurate, and facilitate the evaluation and improvement of the touch function of the terminal device. The technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a click delay measurement method, the method comprising:

[0005] Acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data;

[0006] Based on the first time point and the second time point, obtaining a first delay time of a system response;

[0007] Based on the second time point and the third time point, a second delay time of system transmission is acquired.

[0008] In a second aspect, an embodiment of the present application provides a click delay measurement device, the device comprising:

[0009] A time point acquisition module, used to acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data;

[0010] A first delay acquisition module, used for acquiring a first delay time of a system response based on the first time point and the second time point;

[0011] The second delay acquisition module is used to acquire a second delay time of system transmission based on the second time point and the third time point.

[0012] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0014] In one or more embodiments of the present application, a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes touch data are obtained. Based on the first time point and the second time point, a first delay time of a system response is obtained. Based on the second time point and the third time point, a second delay time of a system transmission is obtained. By obtaining the delay time required for a system response and the delay time required for a system transmission, the positioning and measurement of each stage of the click delay time are made more accurate, which facilitates the evaluation and improvement of the touch function of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 is a structural schematic diagram of a click delay measurement device provided in an embodiment of the present application;

[0017] Figure 2 It is a flowchart of a click delay measurement method provided in an embodiment of the present application;

[0018] Figure 3 It is a flowchart of a click delay measurement method provided in an embodiment of the present application;

[0019] Figure 4 This is an example schematic diagram of obtaining a first time point provided by an embodiment of the present application;

[0020] Figure 5 is a structural schematic diagram of a click delay measurement device provided in an embodiment of the present application;

[0021] Figure 6is a structural schematic diagram of a click delay measurement device provided in an embodiment of the present application;

[0022] Figure 7 It is a structural diagram of a time point acquisition module provided in an embodiment of the present application;

[0023] Figure 8 It is a structural diagram of a total duration acquisition module provided in an embodiment of the present application;

[0024] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The click delay measurement device includes a measuring device and a measured device. The measuring device and the measured device are connected by wire or wireless means to form the click delay measurement device, and can also be assembled by physical combination to form the click delay measurement device. The measured device can be a terminal device with touch function such as a mobile phone, a personal computer, a tablet computer, a handheld device, a vehicle-mounted device, a wearable device, etc. The measuring device is one or more sensors. The measuring device can measure the time of clicking the terminal device screen and the time when the content displayed on the terminal device screen changes. For example, it can be a gravity acceleration sensor and a photoelectric sensor. The click delay measurement device measures the click delay of the terminal device to obtain the click delay time required from clicking the terminal device screen to the terminal device responding.

[0027] Please also see Figure 1, a structural schematic diagram of a click delay measurement device is provided for an embodiment of the present application, and the click delay measurement device includes a gravity acceleration sensor, a photoelectric sensor and a system, wherein the system is a system of a terminal device, and the system may include a processor, a kernel module, a system framework, an application program and a synthetic display module. The gravity acceleration sensor and the photoelectric sensor may be sensors in a terminal device, and may be connected to the processor of the terminal device in a wired or wireless manner to form a click delay measurement device. For example, a universal serial bus (USB) or wireless communication technology (Wi-Fi) may be used to connect the gravity acceleration sensor to the processor, and to connect the photoelectric sensor to the processor. The processor is connected to the kernel module, the processor is connected to the system framework, the processor is connected to the application program, the processor is connected to the synthetic display module, the kernel module is connected to the system framework, the system framework is connected to the application program, and the application program is connected to the synthetic display module.

[0028] The contact of the gravity acceleration sensor can click the screen of the terminal device, thereby generating a click operation on the screen, and the gravity acceleration sensor can send the first time point of the click operation to the processor. When the click operation is generated on the screen, the kernel module can generate touch data according to the click operation. It can be understood that the touch data may include the time point when the kernel module detects the click operation, the corresponding position information of the click operation on the screen, etc. The kernel module generates touch data, which means that the system responds to the click operation, and the kernel module can send the second time point of generating touch data to the processor. The kernel module sends the touch data to the system framework, which is transmitted to the application running in the foreground through the system framework. The application consumes the touch data. The application consumes the touch data, which means that the application receives the touch data and uses the operation of the touch data. The application can use the touch data to achieve the purpose of the user controlling the application. For example, when the application is a game application, the user wants to operate the game character to release the game skills, and can click the game skills on the terminal screen. The terminal device will generate touch data according to the click operation and send it to the application. The application can consume the touch data, that is, obtain the game skills corresponding to the click operation according to the touch data, and make the game character release the game skills. The application can send the third time point at which the touch data is consumed to the processor. The processor can calculate the first delay time for the terminal device to perform a system response to the click operation based on the time difference between the first time point and the second time point, that is, the time from the click operation on the screen to the system generating touch data for the click operation, and then calculate the second delay time required for system transmission based on the time difference between the second time point and the third time point, that is, the time from the system generating touch data to the application consuming touch data. Therefore, the click delay measurement device can obtain the click delay time in stages, so that the positioning and measurement of each stage of the click delay time are more accurate, which is convenient for evaluating and improving the touch function of the terminal device. For example, the system can generate touch data and the system response time based on the first delay time, and the system transmission process can be evaluated based on the second delay time.

[0029] It is understandable that after the user clicks the screen, the terminal device can display special effects such as animation on the screen according to the click operation. In addition to measuring the time from the click to the application consuming the touch data, the click delay measurement device can also obtain the time for the terminal device to render the graphics according to the click operation. After the application consumes the touch data, it will generate a rendering instruction and send the rendering instruction to the synthetic display module. The synthetic display module will perform a drawing and rendering operation according to the rendering instruction, and display the drawn and rendered image on the screen. The photoelectric sensor can detect the display content of the terminal screen. When the photoelectric sensor detects that the screen display color has changed, it means that the terminal device has completed the graphics rendering and displayed it on the screen. The photoelectric sensor can send the fourth time point when the screen display color changes to the processor. The processor can calculate the third delay time spent by the terminal device for drawing and rendering based on the time difference between the third time point and the fourth time point, and the efficiency of the terminal device drawing and rendering can be evaluated based on the third delay time.

[0030] The click delay measurement method provided by the present application is described in detail below in conjunction with specific embodiments.

[0031] See also Figure 2 , which is a flow chart of a click delay measurement method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S103.

[0032] S101, obtaining a first time point of a click operation on a terminal device screen, a second time point of a terminal device system generating touch data in response to the click operation, and a third time point of an application consuming the touch data.

[0033] Specifically, the click delay measurement device can obtain the first time point when the terminal device screen is clicked and a click operation is generated, and obtain the second time point when the terminal device system generates touch data in response to the click operation. The touch data may be the time point when the kernel module of the terminal device detects the click operation, the corresponding position information of the click operation on the screen, etc. The click delay measurement device can also obtain the third time point when the application consumes the touch data, that is, the time point when the application running in the foreground of the terminal device obtains and uses the touch data.

[0034] S102: Acquire a first delay time of a system response based on a first time point and a second time point.

[0035] Specifically, the click delay measurement device makes a difference between the first time point and the second time point, and can calculate the time from the occurrence of the click operation on the screen to the generation of touch data by the kernel module of the terminal device in response to the click operation. This period of time is the time it takes for the terminal device system to respond to the click operation, that is, the first delay time of the system response.

[0036] S103: Based on the second time point and the third time point, obtain a second delay time of system transmission.

[0037] Specifically, the click delay measurement device makes a difference between the second time point and the third time point, and can calculate the time from the time when the kernel module of the terminal device generates touch data to the time when the touch data is consumed by the application. During this period of time, the touch data is transmitted from the kernel module to the application via the system framework until the application uses the touch data. This period of time is the second delay time of the system transmission. The click delay measurement device breaks down the time it takes for the terminal device to respond to the click operation into two stages: system response and system transmission. The first delay time can be used to evaluate the efficiency of the system response, such as the working efficiency of the kernel module, and the second delay time can be used to evaluate the efficiency of the system transmission, such as the working efficiency of the application or system framework.

[0038] In the embodiment of the present application, the first time point of the click operation on the terminal device screen, the second time point at which the terminal device system generates touch data for the click operation, and the third time point at which the application consumes the touch data are obtained. Based on the first time point and the second time point, the first delay time of the system response is obtained, and based on the second time point and the third time point, the second delay time of the system transmission is obtained. By obtaining the delay time required for the system response and the delay time required for the system transmission, the positioning and measurement of each stage of the click delay time are made more accurate, which facilitates the evaluation and improvement of the touch function of the terminal device.

[0039] See also Figure 3 , which is a flow chart of a click delay measurement method provided in an embodiment of the present application. Figure 3 As shown, the method of the embodiment of the present application may include the following steps S201-S211.

[0040] S201, obtaining the first time point of a click operation on the screen of the terminal device based on a sensor.

[0041] Specifically, the click delay measurement device can obtain the first time point when the terminal device screen is clicked through the sensor, and the click delay device can control the gravity acceleration sensor so that the contact of the gravity acceleration sensor clicks the screen of the terminal device to generate a click operation, and obtain the first time point of the click operation from the gravity acceleration sensor. Figure 4, an example schematic diagram of obtaining a first time point is provided for an embodiment of the present application. The contact of the acceleration sensor can be used to click the screen of the terminal device. The gravity acceleration sensor can capture the moment when the contact clicks the screen and record it as the first time point.

[0042] Optionally, since the time of the sensor and the terminal device may not be synchronized, it will affect the accuracy of the click delay measurement. It is necessary to perform clock synchronization processing on the sensor and the terminal device so that the time of the sensor and the terminal device are adjusted to the same time. It is understandable that the time of the sensor can be adjusted to the same as the time of the terminal device, or the time of the terminal device can be adjusted to the same as the time of the sensor, or the standard time can be obtained from the satellite, and the time of the terminal device and the time of the sensor can be adjusted to the standard time. The click delay measurement device can display an authorization request window on the screen of the terminal device to request clock synchronization authority from the terminal device user. The clock synchronization authority can be used to obtain and adjust the time of the terminal device. When the user confirms the authorization in the authorization request window, the click delay measurement device can obtain the clock synchronization authorization granted by the user in the authorization request window, and based on the clock synchronization authorization, perform clock synchronization processing on the sensor and the terminal device, thereby protecting the security of the terminal device while improving the accuracy of the click delay measurement.

[0043] S202, obtaining a second time point at which the terminal device system generates touch data for a click operation and a third time point at which the application consumes the touch data.

[0044] Specifically, the click delay measurement device can obtain the second time point when the system of the terminal device generates touch data for the click operation. The touch data may be the time point when the kernel module of the terminal device detects the click operation, the corresponding position information of the click operation on the screen, etc. The click delay measurement device can also obtain the third time point when the application consumes the touch data, that is, the time point when the application running in the foreground of the terminal device obtains and uses the touch data.

[0045] S203: Acquire a first delay time of a system response based on the first time point and the second time point.

[0046] Specifically, the click delay measurement device makes a difference between the first time point and the second time point, and can calculate the time from the occurrence of the click operation on the screen to the generation of touch data by the kernel module of the terminal device in response to the click operation. This period of time is the time it takes for the terminal device system to respond to the click operation, that is, the first delay time of the system response.

[0047] S204: Based on the second time point and the third time point, obtain a second delay time of system transmission.

[0048] Specifically, the click delay measurement device makes a difference between the second time point and the third time point, and can calculate the time from the time when the kernel module of the terminal device generates touch data to the time when the touch data is consumed by the application. During this period of time, the touch data is transmitted from the kernel module to the application via the system framework until the application uses the touch data. This period of time is the second delay time of the system transmission. The click delay measurement device breaks down the time it takes for the terminal device to respond to the click operation into two stages: system response and system transmission. The first delay time can be used to evaluate the efficiency of the system response, such as the working efficiency of the kernel module, and the second delay time can be used to evaluate the efficiency of the system transmission, such as the working efficiency of the application or system framework.

[0049] S205, obtaining a fourth time point when the display of the screen changes, and obtaining a third delay time for drawing and rendering based on the third time point and the fourth time point.

[0050] Specifically, after the user clicks the screen, the terminal device can display special effects such as animation on the screen according to the click operation. In addition to measuring the time from the click to the application consuming the touch data, the click delay measurement device can also obtain the time for the terminal device to perform graphics rendering according to the click operation. The click delay measurement device can obtain the fourth time point when the screen display changes, and then make a difference between the fourth time point and the third time point to calculate the time from the touch data being consumed by the application to the terminal device completing the drawing and rendering and displaying it on the screen. This time period is the third delay time of the terminal device drawing and rendering. The efficiency of the terminal device drawing and rendering can be evaluated based on the third delay time.

[0051] Optionally, the click delay measurement device can control the photoelectric sensor to monitor the display content of the terminal device screen, the photoelectric sensor can detect the screen color change, the photoelectric sensor can record the fourth time point when the screen display color changes, and the click delay measurement device can obtain the fourth time point from the photoelectric sensor. It is understandable that the click delay measurement device can perform clock synchronization processing on the photoelectric sensor and the terminal device.

[0052] S206, obtaining the total measured time from when a click operation occurs on the screen to when the screen display changes.

[0053] Specifically, in order to ensure the accuracy of the first delay time, the second delay time and the third delay time, the click delay measurement device can verify the acquired delay time. The click delay measurement device can obtain the total time from the occurrence of the click operation on the screen to the change of the screen display, and confirm it as the total measurement time.

[0054] Optionally, when the click delay measurement device detects a click operation on the screen, the click delay measurement device can generate a first interrupt signal, and when a change in the display on the screen is detected, a second interrupt signal can be generated. The click delay measurement device can obtain the total measured time from the click operation on the screen to the change in the screen display by calculating the interval between the first interrupt signal and the second terminal signal. It is understandable that the click delay measurement device may include a single-chip microcomputer module, or be connected to the single-chip microcomputer module in a wired or wireless manner. When the click delay measurement device detects a click operation on the screen, a first interrupt signal can be sent to the single-chip microcomputer module, and an interrupt will occur after the single-chip microcomputer module receives the first interrupt signal; when the click delay measurement device detects a change in the display on the screen, a second interrupt signal can be sent to the single-chip microcomputer module, and an interrupt will also occur after the single-chip microcomputer module receives the second interrupt signal. The click delay measurement device can calculate the interval between the two interruptions of the single-chip microcomputer module, and this interval is the total measured time from the click operation on the screen to the change in the screen display.

[0055] Optionally, the click delay measurement device may include a high-speed camera module, or be connected to the high-speed camera module by wire or wireless means. The high-speed camera module may record a video recording of the entire process from the occurrence of a click operation on the screen to the change in the screen display, and the total measurement duration may be obtained from the video recording obtained by the high-speed camera module.

[0056] S207, calculating the sum of the first delay time, the second delay time and the third delay time to obtain a total calculation duration.

[0057] Specifically, the click delay measurement device can calculate the sum of the first delayed time, the second delayed time and the third delayed time, and then calculate the total time.

[0058] S208, determining whether the measured total duration is the same as the calculated total duration.

[0059] Specifically, the click delay measurement device can determine whether the measured total time and the calculated total time are the same. If they are the same, it means that the first delay time, the second delay time and the third delay time have passed the verification and are correct.

[0060] It is understandable that there is an error between the measured total duration and the calculated total duration, and it is not necessary for the values ​​to be exactly the same to be confirmed as the same. As long as the error between the measured total duration and the calculated total duration falls within the preset range, the click delay measurement device confirms that the measured total duration and the calculated total duration are the same. The preset range can be the initial setting of the click delay measurement device, and can also be set by the user or relevant staff and saved in the click delay measurement device.

[0061] S209, confirming that one-click delay measurement is completed.

[0062] Specifically, if the click delay measurement device confirms that the measured total duration is the same as the calculated total duration, the first delay time, the second delay time and the third delay time are verified, and the click delay measurement device confirms that a click delay measurement is completed.

[0063] If the click delay measurement device confirms that the total measured duration and the calculated total duration are different, it means that an error occurred in this measurement, and the click delay measurement is not completed. The acquired first delay time, second delay time and third delay time are not recorded, and S201 is continued to be executed to perform a click delay measurement again.

[0064] S210, determining whether the number of click delay measurements reaches a preset number.

[0065] Specifically, measuring the click delay of a terminal device cannot rely on just one measurement, but requires multiple measurements and statistical processing of the data obtained each time. If the click delay measurement device confirms that a click delay measurement has been completed, it is then determined whether the number of click delay measurements has reached a preset number of times. The preset number of times can be the initial setting of the click delay measurement device, or it can be set by the user or relevant staff and saved in the click delay measurement device.

[0066] S211, obtaining the click delay time obtained in each measurement, and performing statistical processing on all click delay times.

[0067] Specifically, if the number of measurements reaches a preset number, the click delay measurement device can obtain the click delay time obtained in each measurement. It can be understood that the first delay time, the second delay time and the third delay time can be confirmed as a group of click delay times. The first delay time corresponds to the system response time, the second delay time corresponds to the system transmission time, and the third delay time corresponds to the drawing rendering time. The click delay measurement device can perform statistical processing on all click delay times, such as drawing a delay time table obtained from each measurement, and the delay time table includes the first delay time, the second delay time, and the third delay time of each measurement. It can also calculate the first average value of all first delay times, the second average value of all second delay times, and the third average value of all third delay times.

[0068] In an embodiment of the present application, user authorization is obtained and the clock of the sensor and the terminal device are synchronized, the accuracy of the click delay measurement is improved while protecting the security of the terminal device, the first time point of the click operation on the terminal device screen is obtained based on the sensor, the second time point at which the terminal device system generates touch data for the click operation and the third time point at which the application consumes the touch data are obtained, the first delay time of the system response is obtained based on the first time point and the second time point, and the second delay time of the system transmission is obtained based on the second time point and the third time point. Based on the fourth time point when the photoelectric sensor captures the change in the screen display, the third delay time of drawing and rendering is obtained based on the third time point and the fourth time point. The total measured time from the occurrence of the click operation on the screen to the change in the screen display is obtained. If the total measured time is the same as the total time calculated by the sum of the first delay time, the second delay time and the third delay time, it is confirmed that one click delay measurement has been completed, otherwise the click delay measurement continues. Determine whether the number of measurements has reached the predicted number. If so, obtain the click delay time obtained each time and make statistical processing. Otherwise, continue to measure the click delay. Multiple measurements further improve the accuracy of the click delay measurement. By obtaining the delay time required for system response and the delay time required for system transmission, the positioning and measurement of each stage of the click delay time are more accurate, which is convenient for evaluating and improving the touch function of the terminal device.

[0069] The following will be combined with the attached Figure 5 -Attached Figure 8 , the click delay measurement device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 5 -Attached Figure 8 The click delay measurement device in the present application is used to implement Figure 2 and Figure 3 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2 and Figure 3 The embodiment shown.

[0070] See also Figure 5 , which shows a schematic diagram of the structure of a click delay measurement device provided by an exemplary embodiment of the present application. The click delay measurement device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a time point acquisition module 11, a first delay acquisition module 12 and a second delay acquisition module 13.

[0071] A time point acquisition module 11 is used to acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data;

[0072] A first delay acquisition module 12, used to acquire a first delay time of a system response based on the first time point and the second time point;

[0073] The second delay acquisition module 13 is used to acquire a second delay time of system transmission based on the second time point and the third time point.

[0074] In this embodiment, the first time point of the click operation on the terminal device screen, the second time point at which the terminal device system generates touch data for the click operation, and the third time point at which the application consumes the touch data are obtained. Based on the first time point and the second time point, the first delay time of the system response is obtained, and based on the second time point and the third time point, the second delay time of the system transmission is obtained. By obtaining the delay time required for the system response and the delay time required for the system transmission, the positioning and measurement of each stage of the click delay time are made more accurate, which facilitates the evaluation and improvement of the touch function of the terminal device.

[0075] See also Figure 6 , which shows a schematic diagram of the structure of a click delay measurement device provided by an exemplary embodiment of the present application. The click delay measurement device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a time point acquisition module 11, a first delay acquisition module 12, a second delay acquisition module 13, a third delay acquisition module 14, a total duration acquisition module 15 and a statistical processing module 16.

[0076] A time point acquisition module 11 is used to acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data;

[0077] For details, please refer to Figure 7 , which is a schematic diagram of the structure of a time point acquisition module according to an embodiment of the present application. Figure 7 As shown, the time point acquisition module 11 may include:

[0078] The clock synchronization unit 111 is used to display an authorization request window on the screen and obtain clock synchronization authorization in the authorization request window;

[0079] Based on the clock synchronization authorization, clock synchronization processing is performed on the sensor and the terminal device.

[0080] A first time acquisition unit 112, configured to acquire a first time point of a click operation on a screen of a terminal device based on a sensor;

[0081] Optionally, the first time acquisition unit 112 is specifically configured to use a contact of a gravity acceleration sensor to click on a screen of a terminal device, and to acquire a first time point of the click operation on the screen.

[0082] The second time acquisition unit 113 is used to acquire a second time point at which the terminal device system generates touch data for the click operation and a third time point at which the application consumes the touch data.

[0083] A first delay acquisition module 12, used to acquire a first delay time of a system response based on the first time point and the second time point;

[0084] The second delay acquisition module 13 is used to acquire a second delay time of system transmission based on the second time point and the third time point.

[0085] A third delay acquisition module 14, used to acquire a fourth time point when the display of the screen changes;

[0086] Based on the third time point and the fourth time point, obtaining a third delay time for drawing rendering;

[0087] Optionally, the third delay acquisition module 14 is specifically used to use a photoelectric sensor to monitor the display content of the screen and obtain a fourth time point when the screen display color changes.

[0088] A total duration acquisition module 15, in which a user acquires a total duration measured from the occurrence of the click operation on the screen to the change of the screen display;

[0089] Calculate the sum of the first delay time, the second delay time and the third delay time to obtain a total calculation duration;

[0090] If the measured total duration is the same as the calculated total duration, then it is confirmed that the click delay measurement is completed once;

[0091] Optionally, the total duration acquisition module 15 is further configured to not record the click delay time and re-measure the click delay time if the measured total duration is different from the calculated total duration.

[0092] For details, please refer to Figure 8 , which is a schematic diagram of the structure of a total duration acquisition module provided in an embodiment of the present application. Figure 8 As shown, the total duration acquisition module 15 may include:

[0093] A first interrupt unit 151 is configured to generate a first interrupt signal if the click operation on the screen is detected;

[0094] A second interrupt unit 152, configured to generate a second interrupt signal if a change in the display of the screen is detected;

[0095] The total duration calculation unit 153 is used to obtain the total measured duration from the occurrence of the click operation on the screen to the change of the screen display based on the interval time between the first interrupt signal and the second interrupt signal.

[0096] A statistical processing module 16, configured to obtain the click delay time obtained in each measurement when the number of click delay measurements reaches a preset number, wherein the click delay time includes the first delay time, the second delay time and the third delay time;

[0097] Perform statistical processing on all the click delay times.

[0098] In this embodiment, user authorization is obtained and the clock of the sensor and the terminal device are synchronized, so as to improve the accuracy of click delay measurement while protecting the security of the terminal device. The first time point of the click operation on the screen of the terminal device is obtained based on the sensor, the second time point at which the terminal device system generates touch data for the click operation and the third time point at which the application consumes the touch data are obtained, the first delay time of the system response is obtained based on the first time point and the second time point, and the second delay time of the system transmission is obtained based on the second time point and the third time point. The fourth time point at which the photoelectric sensor captures the change in the screen display is obtained based on the third time point and the fourth time point. The total measured time from the occurrence of the click operation on the screen to the change in the screen display is obtained. If the total measured time is the same as the total time calculated by the sum of the first delay time, the second delay time and the third delay time, it is confirmed that one click delay measurement has been completed, otherwise the click delay measurement continues. Determine whether the number of measurements has reached the predicted number. If so, obtain the click delay time obtained each time and make statistical processing. Otherwise, continue to measure the click delay. Multiple measurements further improve the accuracy of the click delay measurement. By obtaining the delay time required for system response and the delay time required for system transmission, the positioning and measurement of each stage of the click delay time are more accurate, which is convenient for evaluating and improving the touch function of the terminal device.

[0099] It should be noted that the click delay measurement device provided in the above embodiment only uses the division of the above functional modules as an example when executing the click delay measurement method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the click delay measurement device provided in the above embodiment and the click delay measurement method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0100] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0101] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 4 The click delay measurement method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 4 The specific description of the illustrated embodiment will not be repeated here.

[0102] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1-Figure 4 The click delay measurement method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 4 The specific description of the illustrated embodiment will not be repeated here.

[0103] Please refer to Fig. 9 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.

[0104] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0105] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.

[0106] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0107] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0108] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0109] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0110] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module and other components, which will not be described in detail here.

[0111] exist Fig. 9 In the electronic device shown, the processor 110 may be used to call the click delay measurement application stored in the memory 120, and specifically perform the following operations:

[0112] Acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data;

[0113] Based on the first time point and the second time point, obtaining a first delay time of a system response;

[0114] Based on the second time point and the third time point, a second delay time of system transmission is acquired.

[0115] In one embodiment, the processor 110 specifically performs the following operations when executing the first time point of acquiring a click operation on the terminal device screen, the second time point of the terminal device system generating touch data for the click operation, and the third time point of the application consuming the touch data:

[0116] Acquire the first time point of the click operation on the screen of the terminal device based on the sensor;

[0117] A second time point at which the terminal device system generates touch data for the click operation and a third time point at which the application consumes the touch data are obtained.

[0118] In one embodiment, when the processor 110 acquires the first time point of the click operation on the screen of the terminal device based on the sensor, the processor 110 specifically performs the following operations:

[0119] The contact of the gravity acceleration sensor is used to click the screen of the terminal device, and the first time point of the clicking operation on the screen is obtained.

[0120] In one embodiment, before executing the process of acquiring the first time point of the click operation on the screen of the terminal device based on the sensor, the processor 110 further performs the following operations:

[0121] Displaying an authorization request window on the screen, and obtaining clock synchronization authorization in the authorization request window;

[0122] Based on the clock synchronization authorization, clock synchronization processing is performed on the sensor and the terminal device.

[0123] In one embodiment, when executing the click delay measurement method, the processor 110 further performs the following operations:

[0124] Acquire a fourth time point at which the display of the screen changes;

[0125] Based on the third time point and the fourth time point, a third delay time of drawing rendering is obtained.

[0126] In one embodiment, when executing to obtain the fourth time point at which the display of the screen changes, the processor 110 specifically performs the following operations:

[0127] A photoelectric sensor is used to monitor the display content of the screen to obtain a fourth time point when the display color of the screen changes.

[0128] In one embodiment, when executing the click delay measurement method, the processor 110 further performs the following operations:

[0129] If the number of click delay measurements reaches a preset number, the click delay time obtained in each measurement is obtained, where the click delay time includes the first delay time, the second delay time, and the third delay time;

[0130] Perform statistical processing on all the click delay times.

[0131] In one embodiment, when executing the click delay measurement method, the processor 110 further performs the following operations:

[0132] Obtaining the total measured time from the occurrence of the click operation on the screen to the change of the screen display;

[0133] Calculate the sum of the first delay time, the second delay time and the third delay time to obtain a total calculation duration;

[0134] If the measured total duration is the same as the calculated total duration, it is confirmed that the click delay measurement is completed once.

[0135] In one embodiment, when executing the click delay measurement method, the processor 110 further performs the following operations:

[0136] If the measured total duration is different from the calculated total duration, the click delay time is not recorded and the click delay measurement is performed again.

[0137] In one embodiment, when the processor 110 executes the acquisition of the total measured time from the occurrence of the click operation on the screen to the change of the screen display, the processor 110 specifically performs the following operations:

[0138] If the click operation on the screen is detected, a first interrupt signal is generated;

[0139] If it is detected that the display of the screen changes, a second interrupt signal is generated and sent;

[0140] Based on the interval between the first interrupt signal and the second interrupt signal, a total measured duration from when the click operation occurs on the screen to when the screen display changes is obtained.

[0141] In this embodiment, user authorization is obtained and the clock of the sensor and the terminal device are synchronized, so as to improve the accuracy of click delay measurement while protecting the security of the terminal device. The first time point of the click operation on the screen of the terminal device is obtained based on the sensor, the second time point at which the terminal device system generates touch data for the click operation and the third time point at which the application consumes the touch data are obtained, the first delay time of the system response is obtained based on the first time point and the second time point, and the second delay time of the system transmission is obtained based on the second time point and the third time point. The fourth time point at which the photoelectric sensor captures the change in the screen display is obtained based on the third time point and the fourth time point. The total measured time from the occurrence of the click operation on the screen to the change in the screen display is obtained. If the total measured time is the same as the total time calculated by the sum of the first delay time, the second delay time and the third delay time, it is confirmed that one click delay measurement has been completed, otherwise the click delay measurement continues. Determine whether the number of measurements has reached the predicted number. If so, obtain the click delay time obtained each time and make statistical processing. Otherwise, continue to measure the click delay. Multiple measurements further improve the accuracy of the click delay measurement. By obtaining the delay time required for system response and the delay time required for system transmission, the positioning and measurement of each stage of the click delay time are more accurate, which is convenient for evaluating and improving the touch function of the terminal device.

[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0143] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A click delay measurement method, characterized in that: The method comprises: Acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data; Based on the first time point and the second time point, obtaining a first delay time of a system response; Based on the second time point and the third time point, obtaining a second delay time of system transmission; Acquire a fourth time point at which the display of the screen changes; Based on the third time point and the fourth time point, obtaining a third delay time for drawing rendering; Obtaining the total measured time from the occurrence of the click operation on the screen to the change of the screen display; Calculate the sum of the first delay time, the second delay time and the third delay time to obtain a total calculation duration; If the error between the measured total duration and the calculated total duration falls within a preset range, confirming that the click delay measurement is completed once; If the error between the measured total duration and the calculated total duration does not fall within the preset range, the click delay time is not recorded, and the click delay measurement is performed again; The obtaining of the total measured time from the occurrence of the click operation on the screen to the change of the screen display includes: If the click operation on the screen is detected, a first interrupt signal is generated; If a change in the display of the screen is detected, a second interrupt signal is generated; Based on the interval time between generating the first interrupt signal and the second interrupt signal, a total measured duration from the occurrence of the click operation on the screen to the change of the screen display is obtained.

2. The method according to claim 1, characterized in that: The acquiring of a first time point of a click operation on a terminal device screen, a second time point of the terminal device system generating touch data for the click operation, and a third time point of the application consuming the touch data include: Acquire the first time point of the click operation on the screen of the terminal device based on the sensor; A second time point at which the terminal device system generates touch data for the click operation and a third time point at which the application consumes the touch data are obtained.

3. The method according to claim 2, characterized in that The step of acquiring the first time point of the click operation on the screen of the terminal device based on the sensor includes: The contact of the gravity acceleration sensor is used to click the screen of the terminal device, and the first time point of the clicking operation on the screen is obtained.

4. The method according to claim 1, characterized in that: Before acquiring the first time point of the click operation on the screen of the terminal device based on the sensor, the method further includes: Displaying an authorization request window on the screen, and obtaining clock synchronization authorization in the authorization request window; Based on the clock synchronization authorization, clock synchronization processing is performed on the sensor and the terminal device.

5. The method according to claim 1, characterized in that The obtaining of a fourth time point at which the display of the screen changes includes: A photoelectric sensor is used to monitor the display content of the screen to obtain a fourth time point when the display color of the screen changes.

6. The method according to claim 1, characterized in that The method further comprises: If the number of click delay measurements reaches a preset number, the click delay time obtained in each measurement is obtained, where the click delay time includes the first delay time, the second delay time, and the third delay time; Perform statistical processing on all the click delay times.

7. A click delay measurement device, characterized in that: The device comprises: A time point acquisition module, used to acquire a first time point of a click operation on a terminal device screen, a second time point at which the terminal device system generates touch data for the click operation, and a third time point at which an application consumes the touch data; A first delay acquisition module, used for acquiring a first delay time of a system response based on the first time point and the second time point; A second delay acquisition module, used for acquiring a second delay time of system transmission based on the second time point and the third time point; A third delay acquisition module, used to acquire a fourth time point when the display of the screen changes; Based on the third time point and the fourth time point, obtaining a third delay time for drawing rendering; A total duration acquisition module, used to acquire the total duration measured from the occurrence of the click operation on the screen to the change of the screen display; Calculate the sum of the first delay time, the second delay time and the third delay time to obtain a total calculation duration; If the error between the measured total duration and the calculated total duration falls within a preset range, confirming that the click delay measurement is completed once; If the measured total duration is different from the calculated total duration, the click delay time is not recorded and the click delay measurement is performed again; The total duration acquisition module includes: A first interrupt unit, configured to generate a first interrupt signal if the click operation on the screen is detected; A second interrupt unit, configured to generate a second interrupt signal if a change in the display of the screen is detected; A total duration calculation unit is used to obtain a total measured duration from the occurrence of the click operation on the screen to the change of the screen display based on the interval time between the first interrupt signal and the second interrupt signal.

8. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as claimed in any one of claims 1 to 6.

9. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for testing response time delay of interactive infrared touch integrated machine

    CN106353613A

  • Terminal screen response time measuring method, device and terminal equipment

    CN111090570A

  • Device and method for detecting touch delay time

    US20150185931A1