CN114398017A - Time delay detection method and device and electronic equipment - Google Patents

Time delay detection method and device and electronic equipment Download PDF

Info

Publication number
CN114398017A
CN114398017A CN202210037296.9A CN202210037296A CN114398017A CN 114398017 A CN114398017 A CN 114398017A CN 202210037296 A CN202210037296 A CN 202210037296A CN 114398017 A CN114398017 A CN 114398017A
Authority
CN
China
Prior art keywords
time
electronic device
picture
time value
desktop image
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.)
Pending
Application number
CN202210037296.9A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN202210037296.9A priority Critical patent/CN114398017A/en
Publication of CN114398017A publication Critical patent/CN114398017A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a time delay detection method and device and electronic equipment, relates to the technical field of computers, and particularly relates to the technical field of data transmission. The specific implementation scheme is as follows: the time delay detection method comprises the following steps: under the condition that a first electronic device and a second electronic device are in communication connection, displaying a desktop image of the second electronic device in the first electronic device; when a first time picture and the desktop image are displayed in the first electronic device and the desktop image includes a second time picture, calculating transmission delay data of the desktop image based on a time value in the first time picture and a time value in the second time picture, wherein the first time picture is a picture of a first timer running in the first electronic device, and the second time picture is a picture of a second timer running in the second electronic device. The present disclosure may simplify the process of delay detection.

Description

Time delay detection method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to the field of data transmission technology. In particular to a time delay detection method, a time delay detection device and electronic equipment.
Background
Currently, in the data transmission process, delay detection is usually required to determine the real-time performance of data transmission. The existing time delay detection method mainly includes that related personnel invade a source code of transmitted data and modify the source code to complete a time delay detection process.
Disclosure of Invention
The disclosure provides a time delay detection method and device and electronic equipment.
According to a first aspect of the present disclosure, there is provided a time delay detection method applied to a first electronic device, the method including:
under the condition that a first electronic device and a second electronic device are in communication connection, displaying a desktop image of the second electronic device in the first electronic device;
when a first time picture and the desktop image are displayed in the first electronic device and the desktop image includes a second time picture, calculating transmission delay data of the desktop image based on a time value in the first time picture and a time value in the second time picture, wherein the first time picture is a picture of a first timer running in the first electronic device, and the second time picture is a picture of a second timer running in the second electronic device.
According to a second aspect of the present disclosure, there is provided a latency detection apparatus applied to a first electronic device, the apparatus including:
the display module is used for displaying the desktop image of the second electronic equipment in the first electronic equipment under the condition that the first electronic equipment and the second electronic equipment are in communication connection;
the computing module is configured to compute transmission delay data of the desktop image based on a time value in the first time picture and a time value in the second time picture when the first time picture and the desktop image are displayed in the first electronic device and the desktop image includes the second time picture, where the first time picture is a picture of a first timer running in the first electronic device, and the second time picture is a picture of a second timer running in the second electronic device.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect.
In the embodiment of the disclosure, in the process of transmitting the desktop image of the second electronic device to the first electronic device, the second time frame may record a time value before the desktop image is transmitted, and the first time frame may record a time value after the first electronic device receives the desktop image, so that the transmission delay data of the desktop image may be obtained by calculating a difference between the time value in the first time frame and the time value in the second time frame, and thus, the process of delay detection may be simplified.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart of a delay detection method according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of a delay detection method according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a delay detection apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device for implementing a latency detection method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Referring to fig. 1, a flowchart of a delay detection method according to an embodiment of the present disclosure is shown, where the delay detection method includes the following steps:
step S101, under the condition that a first electronic device and a second electronic device are in communication connection, displaying a desktop image of the second electronic device in the first electronic device;
step S102, when a first time frame and the desktop image are displayed in the first electronic device and the desktop image includes a second time frame, calculating transmission delay data of the desktop image based on a time value in the first time frame and a time value in the second time frame, where the first time frame is a frame of a first timer running in the first electronic device and the second time frame is a frame of a second timer running in the second electronic device.
The desktop image can be a desktop image of a cloud desktop, and the cloud desktop is also called desktop virtualization and a cloud computer and is a new mode for replacing a traditional computer; after the cloud desktop is adopted, a user does not need to purchase a computer host, all components such as a CPU (central processing unit), a memory, a hard disk and the like contained in the computer host are virtualized in a server at the back end, and 1-50 different virtual computers can be virtualized by a single high-performance server; the main stream of the front-end equipment is that a thin client is connected with a display, a keyboard and a mouse, and a user accesses a virtual machine host on a back-end server through a special communication protocol after installing a client to realize interactive operation, so that the experience effect consistent with that of a computer is achieved. Accordingly, the second electronic device may be a server of the backend, and the first electronic device may be a front-end device formed by the thin client and a display. Thus, the transmission delay data of the cloud desktop can be detected based on the method of the embodiment of the disclosure.
In addition, the desktop image may also be a desktop image of a anchor terminal in a live scene, and accordingly, the first electronic device is a terminal device of the anchor terminal, and the second electronic device is an electronic device of a viewer terminal. In this way, the transmission delay data of the live broadcast picture can be detected based on the method of the embodiment of the present disclosure. It is to be understood that, when the desktop image is a desktop image of a anchor terminal in a live scene, the second timer may be a timer started by a user of the anchor terminal at the anchor terminal, or the second timer may also be a timer held by the anchor terminal, which is not limited in this respect.
For convenience of understanding, the following takes the desktop image as a desktop image of a cloud desktop as an example, and further explains the time delay detection method provided by the embodiment of the present disclosure.
It can be understood that, in a case where a first electronic device and a second electronic device successfully establish a communication connection, the second electronic device may transmit its desktop image to the first electronic device in real time for display, and there is usually a time delay in the data transmission process, so the desktop image displayed by the second electronic device may not be a real-time picture in the first electronic device.
Based on this, in the embodiment of the present disclosure, the first timer may be started in the first electronic device, and a first time frame of the first timer may be displayed on the first electronic device. Meanwhile, the second timer may be started in the second electronic device, and a second time frame of the second timer may be displayed in the desktop image of the second electronic device, so that the second time frame may also be transmitted to the first electronic device for display in the process of transmitting the desktop image of the second electronic device to the first electronic device. As such, the first electronic device may display the first time screen and the second time screen simultaneously. In any frame of desktop image, the second time picture can record the time value before the transmission of the frame of desktop image. When the first electronic device displays the frame of desktop image, the first time frame may record a time value when the first electronic device receives the frame of desktop image, so that the transmission delay data of the frame of desktop image may be obtained by calculating a difference between the time value in the first time frame and the time value in the second time frame. The time delay detection process of the desktop image can be completed only by starting the two timers and calculating the time difference value of the two timers without invading and modifying the source code of the desktop image, so the process of the transmission time delay detection of the desktop image can be simplified.
It should be noted that, because the delay value may be small during the data transmission process, the first timer and the second timer may respectively adopt millisecond-level timers, so that millisecond-level transmission delay data may be detected.
In the process of performing the time delay detection, after receiving the desktop image, the first electronic device may display the desktop image in a window form, and display the first time frame outside a display window of the desktop image, so that it is ensured that the first electronic device can simultaneously display the first time frame and the second time frame. In addition, the first time frame may be displayed on an upper layer of the desktop image in a floating window manner, and a display position of the first time frame is relatively staggered from a display position of the second time frame, so that the first time frame and the second time frame may be displayed simultaneously.
In this embodiment, in the process of transmitting the desktop image of the second electronic device to the first electronic device, since the second time frame may record a time value before the desktop image is transmitted, and the first time frame may record a time value after the first electronic device receives the desktop image, the transmission delay data of the desktop image may be obtained by calculating a difference between the time value in the first time frame and the time value in the second time frame, so that the process of delay detection may be simplified.
Optionally, before the calculating of the transmission delay data of the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further includes:
receiving a first input acting on the desktop image;
and responding to the first input, controlling the second electronic equipment to start the second timer so as to enable the second electronic equipment to display the second time picture in the desktop image.
Specifically, when the desktop image is a desktop image of a cloud desktop, and under the condition that a first electronic device and a second electronic device establish a communication connection, a user of the first electronic device may operate the second electronic device based on the desktop image displayed in the first electronic device, for example, the user of the first electronic device may start or close an application in the second electronic device through the desktop image displayed in the first electronic device, or view and edit data and the like stored in the second electronic device. Therefore, the user of the first electronic device may control a second timer in the second electronic device to start through the desktop image displayed by the first electronic device, so that the second electronic device displays the second time frame in the desktop image. That is, the first input may be an input of the user to start the second timer in the second electronic device, for example, the first input may be a click input of the user on an icon of the second timer displayed in the desktop image.
It can be understood that, in the case that the second time frame is displayed in the desktop image of the second electronic device, the second time frame will be transmitted to the first electronic device along with the desktop image for display.
In this embodiment, after the first electronic device establishes a communication connection with the second electronic device, the first input is performed in the desktop image displayed by the first electronic device to start the second timer in the second electronic device, so that the second time frame can be displayed in the desktop image. Therefore, when the time delay detection is carried out, the time value in the second time picture can be directly acquired so as to complete the time delay detection process.
Optionally, before the calculating of the transmission delay data of the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further includes:
receiving a second input;
in response to the second input, starting the first timer in the first electronic device and displaying the first time screen in the first electronic device.
It is understood that the user of the first electronic device can control the second electronic device based on the desktop image and can also control the first electronic device. Therefore, when the time delay detection is required, the user of the first electronic device may directly start the first timer in the first electronic device to display the first time frame. Meanwhile, the user of the first electronic device may also start a second timer in the second electronic device based on the desktop image to display the second time frame.
The second input may be an input operation applied to an area other than the desktop image. And the second input is used for starting the first timer in the first electronic device, for example, the second input may be a click input of a user of the first electronic device on an application icon of the first timer pre-installed in the first electronic device.
In this embodiment, a first timer in a first electronic device is started by performing a second input in the first electronic device, so that a first time frame can be displayed on the first electronic device. Therefore, when the time delay detection is carried out, the time value in the first time picture can be directly acquired so as to finish the time delay detection process.
Optionally, the calculating transmission delay data of the desktop image based on the time value in the first time frame and the time value in the second time frame includes:
acquiring a target image displayed in first electronic equipment, wherein the target image comprises the first time picture and the second time picture;
identifying the target image through a preset artificial intelligence model to obtain a first time value and a second time value, wherein the first time value is a time value in the first time picture, and the second time value is a time value in the second time picture;
and calculating the difference value between the first time value and the second time value to obtain the transmission delay data.
Specifically, the acquiring of the target image displayed in the first electronic device may include: and under the condition that the first electronic equipment simultaneously displays the first time picture and the second time picture, inputting a screen capturing instruction to the first electronic equipment to obtain a screen capturing image, and determining the screen capturing image as the target image.
The preset Artificial Intelligence (AI) model may be a model trained in advance based on an existing AI image recognition technology, wherein the AI model may be used to recognize a time value in the target image. Specifically, after the relevant person starts a time delay detection process, the first electronic device may acquire the target image, and after the target image is acquired, the target image may be input into the AI model, and the AI model identifies the target image to obtain the first time value and the second time value. Then, the AI model may input the first time value and the second time value into a delay detection process, and the delay detection process may calculate a difference between the first time value and the second time value, where the difference may be an absolute value of a difference between the first time value and the second time value, so as to obtain the transmission delay data.
In this embodiment, the first time value and the second time value are automatically identified based on an AI model, and the transmission delay data is obtained through automatic calculation, so that the delay detection process can be further simplified.
Optionally, the time value output by the first timer and the time value output by the second timer are time values of the same time zone.
Wherein, the time value output by the first timer and the time value output by the second timer are the time value of the same time zone: there is no time difference between the time value output by the first timer and the time value output by the second timer, that is, the source times of the two timers are the same.
In this embodiment, the time value output by the first timer and the time value output by the second timer are time values in the same time zone, so that the problem of inaccurate delay detection result due to time difference between the time values output by the two timers can be avoided, and the accuracy of delay detection can be further improved.
Optionally, after calculating the transmission delay data of the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further includes:
displaying the transmission delay data in the first electronic device.
Specifically, the transmission delay data may be displayed in the first electronic device in a floating window form. It can be understood that, while the first electronic device displays the desktop image, the first electronic device may output transmission delay data of each displayed frame of desktop image in real time.
In this embodiment, the transmission delay data of the desktop image is displayed on the first electronic device, which is beneficial for relevant detection personnel to view the transmission delay data of the displayed desktop image in real time.
Optionally, after calculating the transmission delay data of the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further includes:
storing the transmission delay data in the first electronic device;
sending a time delay data set stored in the first electronic device within a preset period to a third electronic device, wherein the third electronic device is used for detecting the transmission time delay data to obtain a time delay detection result, and the time delay data set comprises at least one group of transmission time delay data of the desktop image;
and receiving the time delay detection result sent by the third electronic equipment.
The third electronic device may be a test server, and the third electronic device may detect whether the transmission delay data is abnormal. The duration of the preset period may be selected according to actual needs, and may be, for example, 1 minute, 10 minutes, 30 minutes, and the like. The delay data set may include all transmission delay data generated in the preset period.
Specifically, in the process of performing the time delay detection, the first electronic device may calculate transmission time delay data of each frame of the received desktop image. Of course, the first electronic device may also calculate the transmission delay data of the desktop image every preset time. And the first electronic device may store the calculated transmission delay data locally to the first electronic device.
In the process of time delay detection, transmission time delay data of each frame of desktop image may need to be detected, which may result in a large amount of transmission time delay data generated in the detection process. If the transmission delay data corresponding to each frame of desktop image is simply displayed on the first electronic device and whether the transmission delay data is abnormal is observed manually, the problem that the judgment result of human eyes is inaccurate due to the fact that the updating frequency of the transmission delay data is too high is likely to occur.
Based on this, in the embodiment of the present disclosure, the calculated transmission delay data may be stored in the first electronic device, and the first electronic device may send the transmission delay data stored in the preset period to the third electronic device every preset period, and the third electronic device detects the transmission delay data in the preset period, and after the third electronic device completes the detection of the transmission delay data, the third electronic device may transmit the delay detection result back to the first electronic device, so that a detection person may view the delay detection result, which may improve the accuracy of the delay detection result, and may further simplify the delay detection process.
In this embodiment, the transmission delay data is stored locally in the first electronic device, and the delay data set in the preset period is sent to the third electronic device based on the first electronic device, so that the third electronic device detects the transmission delay data in the delay data set, thereby improving the accuracy of the delay detection result and further simplifying the delay detection process.
Referring to fig. 2, a flowchart of a delay detection method provided by the present disclosure is shown, where the delay detection method includes the following steps: when the first electronic device establishes communication connection with a second electronic device, a first timer is started in the first electronic device, and a second timer is started in the second electronic device. Intercepting a target image in the first electronic device. And judging whether the screenshot is successful or not. And in the case of failure of screenshot, re-executing the step of intercepting the target image in the first electronic equipment. And under the condition that the screenshot is successful, identifying a first time value and a second time value in the target image based on a preset AI model. Since the time values in the first and second timers are always dynamically changed, there may be a case where the time values in the intercepted target image are blurred in display, in which case the AI model may not recognize the first time value and/or the second time value. Therefore, it can be determined whether the first time value and the second time value are successfully recognized, and in case of failure of recognition, the step of "capturing the target image in the first electronic device" can be re-executed. And under the condition of successful identification, calculating the time difference between the first time value and the second time value to obtain the transmission delay data of the desktop image. Finally, the transmission delay data may be displayed in the first electronic device, and at the same time, the transmission delay data may be stored in the first electronic device. Thereby completing the process of one time delay detection. Then, the above steps may be repeatedly performed to complete the whole delay detection process.
Referring to fig. 3, a schematic structural diagram of a delay detection apparatus 300 according to an embodiment of the present disclosure is shown, where the delay detection apparatus 300 includes:
the display module 301 is configured to display a desktop image of a second electronic device in a first electronic device under the condition that the first electronic device and the second electronic device establish a communication connection;
a calculating module 302, configured to calculate transmission delay data of the desktop image based on a time value in the first time picture and a time value in the second time picture when the first time picture and the desktop image are displayed in the first electronic device and the desktop image includes the second time picture, where the first time picture is a picture of a first timer running in the first electronic device, and the second time picture is a picture of a second timer running in the second electronic device.
Optionally, the apparatus further comprises:
a first receiving module for receiving a first input acting on the desktop image;
and the first starting module is used for responding to the first input and controlling the second electronic equipment to start the second timer so as to enable the second electronic equipment to display the second time picture in the desktop image.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a second input;
a second starting module, configured to start the first timer in the first electronic device in response to the second input, and display the first time frame in the first electronic device.
Optionally, the calculating module 302 includes:
the acquisition submodule is used for acquiring a target image displayed in first electronic equipment, wherein the target image comprises the first time picture and the second time picture;
the identification submodule is used for identifying the target image through a preset artificial intelligence model to obtain a first time value and a second time value, wherein the first time value is a time value in the first time picture, and the second time value is a time value in the second time picture;
and the calculating submodule is used for calculating the difference value between the first time value and the second time value to obtain the transmission delay data.
Optionally, the time value output by the first timer and the time value output by the second timer are time values of the same time zone.
Optionally, the apparatus further comprises:
a display module 301, configured to display the transmission delay data in the first electronic device.
Optionally, the apparatus further comprises:
the storage module is used for storing the transmission delay data in the first electronic equipment;
the sending module is used for sending a time delay data set stored by the first electronic device in a preset period to a third electronic device, wherein the third electronic device is used for detecting the transmission time delay data to obtain a time delay detection result, and the time delay data set comprises at least one group of transmission time delay data of the desktop image;
and the receiving module is used for receiving the time delay detection result sent by the third electronic equipment.
It should be noted that the delay detection apparatus 300 provided in this embodiment can implement all technical solutions of the above-mentioned delay detection method embodiments, so that at least all technical effects can be implemented, and details are not described here.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the electronic device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 401 executes the respective methods and processes described above, such as the delay detection method. For example, in some embodiments, the latency detection method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the latency detection method described above are performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the latency detection method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A time delay detection method is applied to a first electronic device, and comprises the following steps:
under the condition that a first electronic device and a second electronic device are in communication connection, displaying a desktop image of the second electronic device in the first electronic device;
when a first time picture and the desktop image are displayed in the first electronic device and the desktop image includes a second time picture, calculating transmission delay data of the desktop image based on a time value in the first time picture and a time value in the second time picture, wherein the first time picture is a picture of a first timer running in the first electronic device, and the second time picture is a picture of a second timer running in the second electronic device.
2. The method of claim 1, wherein prior to calculating the transmission delay data for the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further comprises:
receiving a first input acting on the desktop image;
and responding to the first input, controlling the second electronic equipment to start the second timer so as to enable the second electronic equipment to display the second time picture in the desktop image.
3. The method of claim 1, wherein prior to calculating the transmission delay data for the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further comprises:
receiving a second input;
in response to the second input, starting the first timer in the first electronic device and displaying the first time screen in the first electronic device.
4. The method of claim 1, wherein the calculating the transmission delay data for the desktop image based on the time value in the first time frame and the time value in the second time frame comprises:
acquiring a target image displayed in first electronic equipment, wherein the target image comprises the first time picture and the second time picture;
identifying the target image through a preset artificial intelligence model to obtain a first time value and a second time value, wherein the first time value is a time value in the first time picture, and the second time value is a time value in the second time picture;
and calculating the difference value between the first time value and the second time value to obtain the transmission delay data.
5. The method of claim 1, wherein the time value output by the first timer and the time value output by the second timer are time values of the same time zone.
6. The method of claim 1, wherein after calculating the transmission delay data for the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further comprises:
displaying the transmission delay data in the first electronic device.
7. The method of claim 1, wherein after calculating the transmission delay data for the desktop image based on the time value in the first time frame and the time value in the second time frame, the method further comprises:
storing the transmission delay data in the first electronic device;
sending a time delay data set stored in the first electronic device within a preset period to a third electronic device, wherein the third electronic device is used for detecting the transmission time delay data to obtain a time delay detection result, and the time delay data set comprises at least one group of transmission time delay data of the desktop image;
and receiving the time delay detection result sent by the third electronic equipment.
8. A time delay detection device is applied to first electronic equipment, and the device comprises:
the display module is used for displaying the desktop image of the second electronic equipment in the first electronic equipment under the condition that the first electronic equipment and the second electronic equipment are in communication connection;
the computing module is configured to compute transmission delay data of the desktop image based on a time value in the first time picture and a time value in the second time picture when the first time picture and the desktop image are displayed in the first electronic device and the desktop image includes the second time picture, where the first time picture is a picture of a first timer running in the first electronic device, and the second time picture is a picture of a second timer running in the second electronic device.
9. The apparatus of claim 8, wherein the apparatus further comprises:
a first receiving module for receiving a first input acting on the desktop image;
and the first starting module is used for responding to the first input and controlling the second electronic equipment to start the second timer so as to enable the second electronic equipment to display the second time picture in the desktop image.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the second receiving module is used for receiving a second input;
a second starting module, configured to start the first timer in the first electronic device in response to the second input, and display the first time frame in the first electronic device.
11. The apparatus of claim 8, wherein the computing module comprises:
the acquisition submodule is used for acquiring a target image displayed in first electronic equipment, wherein the target image comprises the first time picture and the second time picture;
the identification submodule is used for identifying the target image through a preset artificial intelligence model to obtain a first time value and a second time value, wherein the first time value is a time value in the first time picture, and the second time value is a time value in the second time picture;
and the calculating submodule is used for calculating the difference value between the first time value and the second time value to obtain the transmission delay data.
12. The apparatus of claim 8, wherein the time value output by the first timer and the time value output by the second timer are time values of the same time zone.
13. The apparatus of claim 8, wherein the apparatus further comprises:
and the display module is used for displaying the transmission delay data in the first electronic equipment.
14. The apparatus of claim 8, wherein the apparatus further comprises:
the storage module is used for storing the transmission delay data in the first electronic equipment;
the sending module is used for sending a time delay data set stored by the first electronic device in a preset period to a third electronic device, wherein the third electronic device is used for detecting the transmission time delay data to obtain a time delay detection result, and the time delay data set comprises at least one group of transmission time delay data of the desktop image;
and the receiving module is used for receiving the time delay detection result sent by the third electronic equipment.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the latency detection method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the latency detection method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, performs the latency detection method of any one of claims 1 to 7.
CN202210037296.9A 2022-01-13 2022-01-13 Time delay detection method and device and electronic equipment Pending CN114398017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210037296.9A CN114398017A (en) 2022-01-13 2022-01-13 Time delay detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210037296.9A CN114398017A (en) 2022-01-13 2022-01-13 Time delay detection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114398017A true CN114398017A (en) 2022-04-26

Family

ID=81230613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210037296.9A Pending CN114398017A (en) 2022-01-13 2022-01-13 Time delay detection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114398017A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130163822A1 (en) * 2006-04-04 2013-06-27 Cyclops Technologies, Inc. Airborne Image Capture and Recognition System
CN104618473A (en) * 2015-01-26 2015-05-13 上海视聪网络信息技术有限公司 Virtual machine desktop display method and device
CN105791986A (en) * 2014-12-23 2016-07-20 中国移动通信集团公司 Video time delay detection method and device
CN111722964A (en) * 2019-03-21 2020-09-29 福建天泉教育科技有限公司 Screen-casting delay testing method and terminal
CN112866685A (en) * 2021-01-14 2021-05-28 努比亚技术有限公司 Screen projection delay measuring method, mobile terminal and computer readable storage medium
CN112994980A (en) * 2021-03-02 2021-06-18 北京百度网讯科技有限公司 Time delay testing method and device, electronic equipment and storage medium
CN113521729A (en) * 2021-07-02 2021-10-22 咪咕互动娱乐有限公司 Cloud game delay detection method, server, client, system and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130163822A1 (en) * 2006-04-04 2013-06-27 Cyclops Technologies, Inc. Airborne Image Capture and Recognition System
CN105791986A (en) * 2014-12-23 2016-07-20 中国移动通信集团公司 Video time delay detection method and device
CN104618473A (en) * 2015-01-26 2015-05-13 上海视聪网络信息技术有限公司 Virtual machine desktop display method and device
CN111722964A (en) * 2019-03-21 2020-09-29 福建天泉教育科技有限公司 Screen-casting delay testing method and terminal
CN112866685A (en) * 2021-01-14 2021-05-28 努比亚技术有限公司 Screen projection delay measuring method, mobile terminal and computer readable storage medium
CN112994980A (en) * 2021-03-02 2021-06-18 北京百度网讯科技有限公司 Time delay testing method and device, electronic equipment and storage medium
CN113521729A (en) * 2021-07-02 2021-10-22 咪咕互动娱乐有限公司 Cloud game delay detection method, server, client, system and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHUIYUANQINGYA: "webrtc 共享屏幕延时测试_屏幕延迟测试", pages 1 - 22, Retrieved from the Internet <URL:https://blog.csdn.net/zhuiyuanqingya/article/details/81784235> *

Similar Documents

Publication Publication Date Title
CN113377809A (en) Data processing method and apparatus, computing device, and medium
CN112994980A (en) Time delay testing method and device, electronic equipment and storage medium
CN113810773B (en) Video downloading method and device, electronic equipment and storage medium
CN113655975B (en) Image display method, image display device, electronic apparatus, and medium
CN114417780A (en) State synchronization method and device, electronic equipment and storage medium
CN114449327A (en) Video clip sharing method and device, electronic equipment and readable storage medium
CN113495843A (en) Method and device for testing play-starting performance of video player
CN113221846A (en) Image recognition method, apparatus, device, storage medium, and program product
CN113132802A (en) Screen display regulation and control method and device, electronic equipment and medium
CN114398017A (en) Time delay detection method and device and electronic equipment
CN113312511B (en) Method, apparatus, device and computer readable storage medium for recommending content
CN113596011B (en) Flow identification method and device, computing device and medium
CN114185782A (en) Interactive testing method and device for virtual object and electronic equipment
CN114443197A (en) Interface processing method and device, electronic equipment and storage medium
CN114554110A (en) Video generation method and device, electronic equipment and storage medium
CN113627534A (en) Method and device for identifying type of dynamic image and electronic equipment
CN113891121A (en) Video subtitle processing method, video subtitle display method and device
CN111522599A (en) Method and apparatus for transmitting information
CN113676746B (en) Method, apparatus, device and medium for detecting live broadcast jitter
CN115334159B (en) Method, apparatus, device and medium for processing stream data
CN114398131B (en) Information display method, device, equipment, medium and program product
CN113722534B (en) Video recommendation method and device
CN113641428B (en) Method and device for acquiring special effect scene packet, electronic equipment and readable storage medium
CN113378001B (en) Video playing progress adjusting method and device, electronic equipment and medium
CN113382310B (en) Information recommendation method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination