CN106533408A - Operation time delay method and apparatus - Google Patents

Operation time delay method and apparatus Download PDF

Info

Publication number
CN106533408A
CN106533408A CN201610974554.0A CN201610974554A CN106533408A CN 106533408 A CN106533408 A CN 106533408A CN 201610974554 A CN201610974554 A CN 201610974554A CN 106533408 A CN106533408 A CN 106533408A
Authority
CN
China
Prior art keywords
duration
delay
pressing
new
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610974554.0A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610974554.0A priority Critical patent/CN106533408A/en
Publication of CN106533408A publication Critical patent/CN106533408A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/28Modifications for introducing a time delay before switching
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches

Landscapes

  • Telephone Function (AREA)

Abstract

The invention relates to an operation time delay method and apparatus. The method comprises the following steps: receiving pressing operation of a user in pressing a switch; obtaining a pressing duration of the pressing operation executed by the user; according to the pressing duration, determining a time-delay duration; and delaying the first operation according to the time-delay duration. In such a technical scheme, when the user wants the apparatus to execute certain operation, the user can decide the duration of delayed execution of the operation according to the pressing duration of the pressing switch, such that it is ensured that the apparatus can execute the operation in a delayed mode, delay time does not have to be input again, the delay time of the user can be determined according to the pressing duration of the pressing switch, user operation is simplified, and user experience is improved.

Description

Operation delay method and device
Technical field
It relates to electronic device field, more particularly to operation delay method and device.
Background technology
At present, the living standard of current people is increased substantially, for the requirement lived also more and more higher.Current light is Jing becomes the important component part of many family's daylighting schemes, and the life that quickly manipulation luminaire can give people is provided very Big facility.
The content of the invention
The embodiment of the present disclosure provides operation delay method and device.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of operation delay method, including:
Receive user is by the pressing operation for compressing switch;
Obtain the pressing duration that user performs the pressing operation;
According to the pressing duration, delay duration is determined;
According to the first operation described in the delay duration time delay.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:When user needs device to perform certain During one operation, user can determine that time delay performs the duration of the operation, so, that is, ensure according to by the pressing duration for compressing switch Device can perform one with time delay and operate, and without the need for carry out the input time delay time again, it is possible to which oneself is according to by compressing switch Pressing duration judges the delay time of user, simplifies user operation, improves Consumer's Experience.
In one embodiment, it is described according to the pressing duration, determine that delay duration includes:
According to time delay computing formula, the delay duration is determined, the time delay computing formula is:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:Specifically solve how according to by Pressure duration determines delay duration, without the need for carrying out the input time delay time again, simplifies user operation, improves Consumer's Experience.
In one embodiment, it is described to include according to the first operation described in the delay duration time delay:
Obtain the start time and current time of time delay;
According to the start time and the current time, calculating was experienced from the start time to the current time Duration;
When the duration is equal to the delay duration, first operation is performed.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:Specifically solve and how to be prolonged When, and how to perform the first operation.
In one embodiment, methods described also includes:
When the duration is less than or equal to the delay duration, the user is received by the new pressing operation for compressing switch;
Obtain the new pressing duration that user performs the new pressing operation:
When the new pressing duration is more than or equal to the preset value, according to the new pressing duration, institute is determined State new delay duration;
According to the first operation described in the new delay duration time delay.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:When user needs to change time delay When growing or being not desired to time delay again, modification can be carried out by different pressing durations, the operation of user is further simplify.
In one embodiment, methods described also includes:
When the new pressing duration is less than preset value, performs first and operate.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:Only after time delay is completed, User can also continue to arrange time delay.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of operation delay device, including:
Receiver module, for receive user by the pressing operation for compressing switch;
Acquisition module, performs the pressing duration of the pressing operation for obtaining user;
Determining module, for according to the pressing duration, determining delay duration;
Time delay module, for according to the first operation described in the delay duration time delay.
In one embodiment, the determining module includes:
First determination sub-module, for according to time delay computing formula, determining the delay duration, the time delay computing formula For:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
In one embodiment, the time delay module includes:
Acquisition submodule, for obtaining the start time and current time of time delay;
Calculating sub module, for according to the start time and the current time, calculating from the start time to institute State the duration experienced by current time;
Implementation sub-module, for when the duration is equal to the delay duration, performing first operation.
In one embodiment, described device also includes:
New receiver module, for being less than or equal to the delay duration when the duration, receives the user by compressing switch New pressing operation;
New acquisition module, performs the new pressing duration of the new pressing operation for obtaining user:
New determining module, for when the new pressing duration is more than or equal to the preset value, according to described new Pressing duration, determines the new delay duration;
New time delay module, for according to the first operation described in the new delay duration time delay.
In one embodiment, described device also includes:
Performing module, for when the new pressing duration is less than preset value, performing first and operating.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of operation delay device, including:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Receive user is by the pressing operation for compressing switch;
Obtain the pressing duration that user performs the pressing operation;
According to the pressing duration, delay duration is determined;
According to the first operation described in the delay duration time delay.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
During accompanying drawing herein is merged in description and the part of this specification is constituted, show the enforcement for meeting the disclosure Example, and be used for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart of the operation delay method according to an exemplary embodiment.
Fig. 2 is the flow chart of the operation delay method according to an exemplary embodiment.
Fig. 3 is the flow chart of the operation delay method according to an exemplary embodiment.
Fig. 4 is the block diagram of the operation delay device according to an exemplary embodiment.
Fig. 5 is the block diagram of the operation delay device according to an exemplary embodiment.
Fig. 6 is the block diagram of the operation delay device according to an exemplary embodiment.
Fig. 7 is the block diagram of the operation delay device according to an exemplary embodiment.
Fig. 8 is the block diagram of the operation delay device according to an exemplary embodiment.
Fig. 9 is the block diagram of the operation delay device according to an exemplary embodiment.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some described in detail in claims, the disclosure.
In correlation technique, when user needs certain equipment to perform an operation, need real-time command to be sent to it, set with illuminating As a example by standby lamp, when user wants to turn off the light, need to close the switch of lamp in real time.But sometimes user is not intended to turn off the light at once, this When, correlation technique cannot be realized.
The scheme that the present embodiment is provided needs the solved problem to be:When user needs device to perform a certain operation, use Family can determine that time delay performs the duration of the operation, so, that is, ensure that device can prolong according to by the pressing duration for compressing switch Shi Zhihang mono- is operated, and without the need for carrying out the input time delay time again, it is possible to oneself is according to by the pressing duration judgement for compressing switch Go out the delay time of user, simplify user operation, improve Consumer's Experience.
Embodiment one
Fig. 1 is a kind of flow chart of the operation delay method according to an exemplary embodiment, as shown in figure 1, operation Time-delay method is used in operation delay device, comprises the following steps S101-S104:
In step S101, receive user is by the pressing operation for compressing switch.
Here, the switch for pressing is different, and corresponding pressing operation is different.When switch is virtual switch, pressing operation It is that user touches the virtual switch and activates the operation of the virtual switch, different touch panels, pressing operation are slightly different, electric capacity Plate only needs to touch, and pressure sensitivity plate needs to touch plus-pressure, also has a variety of plate the present embodiment here just not in narration;When switch is real When body is switched, pressing operation is that user presses the switch so that the switch topology changes, or, after pressing the switch The device can produce a current impulse.
In step s 102, obtain the pressing duration that user performs pressing operation.
In step s 103, according to pressing duration, determine delay duration.
The pressing duration of the present embodiment is user-defined, and accordingly, delay duration is by pressing duration definition.If The device has display, and the display can be with display delayed duration and delay duration etc..
In step S104, operate according to delay duration time delay first.
Here, the method for delay has a lot, can be mechanical delay, or electronic delay.For mechanical delay, class The timing of electric fan is similar to, by pressing operation so that time delay part is deformed upon, time delay part can slowly recover former Shape, is delay time in the time of the process experience;For electronic delay, the dress centers a clock, and delay duration is just For the original time of clock, then countdown, return 0 to be considered as time delay until clock time and terminate;For electronic delay, can be with Current time, and the time that time delay starts are obtained, two times are made the difference, it is identical with delay duration when the time for making the difference, just recognize Terminate for time delay.
In one embodiment, when user need device perform a certain operation when, user can according to by compress switch by Pressure duration, determines that time delay performs the duration of the operation, so, that is, ensure that device can perform an operation with time delay, and without the need for again It is secondary to carry out the input time delay time, it is possible to which that oneself simplifies according to the delay time that user is judged by the pressing duration for compressing switch User operation, improves Consumer's Experience.
In one embodiment, step 103 can include:
According to time delay computing formula, delay duration is determined, the time delay computing formula is:
T1=w × (t2 × 60);
Wherein, t1 is delay duration, and to press duration, w is parameter preset to t2.
Here, parameter preset user can be adjusted, so as to reach a satisfied delay duration.
In one embodiment, step 104 can include:
Obtain the start time and current time of time delay;According to start time and current time, calculating is carved into from the outset The duration experienced by current time;When duration is equal to the delay duration, performs first and operate.
In one embodiment, methods described also includes:
When duration is less than or equal to the delay duration, receive user is by the new pressing operation for compressing switch;Obtain user Perform the new pressing duration of new pressing operation:When new pressing duration is more than or equal to preset value, according to new pressing Duration, it is determined that new delay duration;Operate according to new delay duration time delay first.
In cycle if in a time delay, user wants to change delay duration, then user just can be carried out again New pressing operation, the device will judge that user is to need the device to perform the first operation at once, still remodify time delay Time, device just can be determined by the new pressing duration of user, when growing than or equal to preset value when pushed, it is believed that used Family needs device to remodify delay duration, when less than preset value, it is believed that user needs device to perform the first operation at once.
In one embodiment, methods described also includes:
When new pressing duration is less than preset value, performs first and operate.
Embodiment two
Fig. 2 is a kind of flow chart of the operation delay method according to an exemplary embodiment, as shown in Fig. 2 operation Time-delay method is used in operation delay device, and the device can be a single latency device, with the switch of electronic equipment or Receptacle combinations are used, it is also possible to arranged on an electronic device, the method comprises the following steps S201-S206,
In step s 201, receive user is by the pressing operation for compressing switch.
In step S202, the pressing duration that user performs pressing operation is obtained.
In step S203, according to time delay computing formula, delay duration is determined.
The time delay computing formula is:T1=w × (t2 × 60);
Wherein, t1 is delay duration, and to press duration, w is parameter preset to t2.
In step S204, the start time and current time of time delay are obtained.
In step S205, according to start time and current time, calculating is carved into what current time was experienced from the outset Duration.
When in step S206, when duration is equal to the delay duration, shutoff operation is performed.
Here, pressing operation is to perform shutoff operation to trigger electronic equipment.
In the present embodiment, when user needs electronic equipment time delay to perform a certain operation, user can be according to by compressing switch Pressing duration, determine that time delay performs the duration of the operation, so, that is, ensure that electronic equipment can perform an operation with time delay, Again without the need for carrying out the input time delay time again, it is possible to when oneself is according to the time delay of user is judged by the pressing duration for compressing switch Between, user operation is simplified, Consumer's Experience is improve.
Embodiment three
Fig. 3 is a kind of flow chart of the operation delay method according to an exemplary embodiment, as shown in figure 3, operation Time-delay method is used in operation delay device, and the device is applied on desk lamp, and the method comprises the following steps S301-S311,
In step S301, receive user presses the pressing operation of desk lamp switch.
Here, when desk lamp is virtual key, the touch of user can serve as pressing operation;When desk lamp is physical button , user's just can be used as pressing operation by the operation for depressing the case.
In step s 302, obtain the pressing duration that user performs pressing operation.
In step S303, according to time delay computing formula, delay duration is determined.
The time delay computing formula is:T1=w × (t2 × 60);
Wherein, t1 is delay duration, and to press duration, w is parameter preset to t2.
In step s 304, the start time and current time of time delay are obtained.
In step S305, according to start time and current time, calculating is carved into what current time was experienced from the outset Duration.
In step S306, when duration is equal to the delay duration, shutoff operation is performed.
Here, when duration is equal to the moment of the delay duration, perform shutoff operation.
In step S307, when duration is less than the delay duration, the user is received by the new pressing for compressing switch Operation.
Here, step S307 referred in duration less than in the range of delay duration, receives the new pressing operation of user.
In step S308, the new pressing duration that user performs new pressing operation is obtained.
In step S309, when new pressing duration is less than preset value, performs first and operate.
In step S310, when new pressing duration is more than or equal to preset value, according to new pressing duration, again really Fixed new delay duration.
In step 311, operate according to new delay duration time-delay closing.
In the present embodiment, when user needs electronic equipment time delay to perform a certain operation, user can be according to by compressing switch Pressing duration, determine that time delay performs the duration of the operation, so, that is, ensure that electronic equipment can perform an operation with time delay, Again without the need for carrying out the input time delay time again, when user wants to change delay duration, it is thus only necessary to be input into again and can just change Delay duration, so, further simplifies the operation of user, improves the experience of user.
It is following for disclosure device embodiment, can be used for performing method of disclosure embodiment.
Example IV
Fig. 4 is a kind of block diagram of the operation delay device according to an exemplary embodiment, and the device can pass through soft Being implemented in combination with of part, hardware or both becomes some or all of of electronic equipment.As shown in figure 4, the operation delay device Including:
Receiver module 401, for receive user by the pressing operation for compressing switch;
Acquisition module 402, performs the pressing duration of the pressing operation for obtaining user;
Determining module 403, for according to the pressing duration, determining delay duration;
Time delay module 404, for according to the first operation described in the delay duration time delay.
In one embodiment, when user need device perform a certain operation when, user can according to by compress switch by Pressure duration, determines that time delay performs the duration of the operation, so, that is, ensure that device can perform an operation with time delay, and without the need for again It is secondary to carry out the input time delay time, it is possible to which that oneself simplifies according to the delay time that user is judged by the pressing duration for compressing switch User operation, improves Consumer's Experience.
In one embodiment, as shown in figure 5, the determining module 403 includes:
First determination sub-module 4031, for according to time delay computing formula, determining the delay duration, the time delay is calculated Formula is:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
In one embodiment, specifically solve and how delay duration is determined according to pressing duration, it is defeated without the need for carrying out again Enter delay time, simplify user operation, improve Consumer's Experience.
In one embodiment, as shown in fig. 6, the time delay module 404 includes:
Acquisition submodule 4041, for obtaining the start time and current time of time delay;
Calculating sub module 4042, for according to the start time and the current time, calculating from the start time To the duration experienced by the current time;
Implementation sub-module 4043, for when the duration is equal to the delay duration, performing first operation.
In one embodiment, specifically solve and how to enter line delay, and how to perform the first operation.
In one embodiment, as shown in fig. 7, described device also includes:
New receiver module 405, for being less than or equal to the delay duration when the duration, receives the user by pressing off The new pressing operation for closing;
New acquisition module 406, performs the new pressing duration of the new pressing operation for obtaining user:
New determining module 407, for when the new pressing duration is more than or equal to the preset value, according to described new Pressing duration, determine the new delay duration;
New time delay module 408, for according to the first operation described in the new delay duration time delay.
In the present embodiment, when user needs to change delay duration, can be carried out repairing by different pressing durations Change, further simplify the operation of user.
In one embodiment, as shown in figure 8, described device also includes:
Performing module 409, for when the new pressing duration is less than preset value, performing first and operating.
In the present embodiment, when user is not desired to time delay again, modification can be carried out by different pressing durations, enters one Step simplifies the operation of user.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of operation delay device, including:
Processor;
For storing the memorizer of processor executable;
Wherein, processor is configured to:
Receive user is by the pressing operation for compressing switch;
Obtain the pressing duration that user performs the pressing operation;
According to the pressing duration, delay duration is determined;
According to the first operation described in the delay duration time delay.
Above-mentioned processor is also configured to:
It is described according to the pressing duration, determine that delay duration includes:
According to time delay computing formula, the delay duration is determined, the time delay computing formula is:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
It is described to include according to the first operation described in the delay duration time delay:
Obtain the start time and current time of time delay;
According to the start time and the current time, calculating was experienced from the start time to the current time Duration;
When the duration is equal to the delay duration, first operation is performed.
Methods described also includes:
When the duration is less than or equal to the delay duration, the user is received by the new pressing operation for compressing switch;
Obtain the new pressing duration that user performs the new pressing operation:
When the new pressing duration is more than or equal to the preset value, according to the new pressing duration, institute is determined State new delay duration;
According to the first operation described in the new delay duration time delay.
Methods described also includes:
When the new pressing duration is less than preset value, performs first and operate.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Embodiment five
Fig. 9 is a kind of block diagram for operation delay device according to an exemplary embodiment, and the device is applied to Terminal unit.For example, device 500 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game are controlled Platform, tablet device, armarium, body-building equipment, personal digital assistant etc..
Device 500 can include following one or more assemblies:Process assembly 502, memorizer 504, power supply module 506, Multimedia groupware 508, audio-frequency assembly 510, input/output (I/O) interface 512, sensor cluster 514, and communication component 516。
The integrated operation of 502 usual control device 500 of process assembly, such as with display, call, data communication, phase Machine operates and records the associated operation of operation.Process assembly 502 can refer to perform including one or more processors 520 Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 502 can include one or more modules, just Interaction between process assembly 502 and other assemblies.For example, process assembly 502 can include multi-media module, many to facilitate Interaction between media component 508 and process assembly 502.
Memorizer 504 is configured to store various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application program or method for operating on device 500, and contact data, telephone book data disappear Breath, picture, video etc..Memorizer 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and the touch or slide related persistent period and pressure.In certain embodiments, many matchmakers Body component 508 includes a front-facing camera and/or post-positioned pick-up head.When device 500 be in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured to output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 is in operator scheme, such as call model, logging mode and speech recognition mode, mike is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memorizer 504 or via communication set Part 516 sends.In certain embodiments, audio-frequency assembly 510 also includes a speaker, for exports audio signal.
, for interface is provided between process assembly 502 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 512 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, and the state for various aspects are provided for device 500 is commented Estimate.For example, sensor cluster 514 can detect the opening/closed mode of device 500, and the relative localization of component is for example described Display and keypad of the component for device 500, sensor cluster 514 can be with 500 1 components of detection means 500 or device Position change, user is presence or absence of with what device 500 was contacted, 500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to detect when not having any physical contact The presence of object nearby.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As used in application.In certain embodiments, the sensor cluster 514 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement In example, communication component 516 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 500 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks realizations, for performing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided Such as include the memorizer 504 of instruction, above-mentioned instruction can be performed to complete said method by the processor 520 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the process of device 500 When device is performed so that device 500 is able to carry out aforesaid operations time-delay method, and methods described includes:
Receive user is by the pressing operation for compressing switch;
Obtain the pressing duration that user performs the pressing operation;
According to the pressing duration, delay duration is determined;
According to the first operation described in the delay duration time delay.
It is described according to the pressing duration, determine that delay duration includes:
According to time delay computing formula, the delay duration is determined, the time delay computing formula is:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
It is described to include according to the first operation described in the delay duration time delay:
Obtain the start time and current time of time delay;
According to the start time and the current time, calculating was experienced from the start time to the current time Duration;
When the duration is equal to the delay duration, first operation is performed.
Methods described also includes:
When the duration is less than or equal to the delay duration, the user is received by the new pressing operation for compressing switch;
Obtain the new pressing duration that user performs the new pressing operation:
When the new pressing duration is more than or equal to the preset value, according to the new pressing duration, institute is determined State new delay duration;
According to the first operation described in the new delay duration time delay.
Methods described also includes:
When the new pressing duration is less than preset value, performs first and operate.
Those skilled in the art will readily occur to its of the disclosure after considering description and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is limited only by appended claim.

Claims (11)

1. a kind of operation delay method, it is characterised in that include:
Receive user is by the pressing operation for compressing switch;
Obtain the pressing duration that user performs the pressing operation;
According to the pressing duration, delay duration is determined;
According to the first operation described in the delay duration time delay.
2. method according to claim 1, it is characterised in that described according to the pressing duration, determines delay duration bag Include:
According to time delay computing formula, the delay duration is determined, the time delay computing formula is:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
3. method according to claim 1, it is characterised in that described according to the first operation described in the delay duration time delay Including:
Obtain the start time and current time of time delay;
According to the start time and the current time, calculating experienced from the start time to the current time when It is long;
When the duration is equal to the delay duration, first operation is performed.
4. method according to claim 3, it is characterised in that methods described also includes:
When the duration is less than or equal to the delay duration, the user is received by the new pressing operation for compressing switch;
Obtain the new pressing duration that user performs the new pressing operation:
When the new pressing duration is more than or equal to the preset value, according to the new pressing duration, determine described new Delay duration;
According to the first operation described in the new delay duration time delay.
5. method according to claim 4, it is characterised in that methods described also includes:
When the new pressing duration is less than preset value, performs first and operate.
6. a kind of operation delay device, it is characterised in that include:
Receiver module, for receive user by the pressing operation for compressing switch;
Acquisition module, performs the pressing duration of the pressing operation for obtaining user;
Determining module, for according to the pressing duration, determining delay duration;
Time delay module, for according to the first operation described in the delay duration time delay.
7. device according to claim 6, it is characterised in that the determining module includes:
First determination sub-module, for according to time delay computing formula, determining the delay duration, the time delay computing formula is:
T1=w × (t2 × 60);
Wherein, the t1 is the delay duration, and the t2 is the pressing duration, and the w is parameter preset.
8. device according to claim 6, it is characterised in that the time delay module includes:
Acquisition submodule, for obtaining the start time and current time of time delay;
Calculating sub module, works as to described for according to the start time and the current time, calculating from the start time The duration experienced by the front moment;
Implementation sub-module, for when the duration is equal to the delay duration, performing first operation.
9. device according to claim 8, it is characterised in that described device also includes:
New receiver module, for being less than or equal to the delay duration when the duration, receives the user new by what is compressed switch Pressing operation;
New acquisition module, performs the new pressing duration of the new pressing operation for obtaining user:
New determining module, for when the new pressing duration is more than or equal to the preset value, according to the new pressing Duration, determines the new delay duration;
New time delay module, for according to the first operation described in the new delay duration time delay.
10. device according to claim 9, it is characterised in that described device also includes:
Performing module, for when the new pressing duration is less than preset value, performing first and operating.
11. a kind of operation delay devices, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Receive user is by the pressing operation for compressing switch;
Obtain the pressing duration that user performs the pressing operation;
According to the pressing duration, delay duration is determined;
According to the first operation described in the delay duration time delay.
CN201610974554.0A 2016-10-31 2016-10-31 Operation time delay method and apparatus Pending CN106533408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610974554.0A CN106533408A (en) 2016-10-31 2016-10-31 Operation time delay method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610974554.0A CN106533408A (en) 2016-10-31 2016-10-31 Operation time delay method and apparatus

Publications (1)

Publication Number Publication Date
CN106533408A true CN106533408A (en) 2017-03-22

Family

ID=58349702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610974554.0A Pending CN106533408A (en) 2016-10-31 2016-10-31 Operation time delay method and apparatus

Country Status (1)

Country Link
CN (1) CN106533408A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004293A (en) * 2020-08-21 2020-11-27 杭州老板电器股份有限公司 Method and device for controlling intracavity lighting switch of embedded kitchen ware and embedded kitchen ware

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841610A (en) * 2005-03-30 2006-10-04 坤胜工业股份有限公司 Key-press type switch and electric apparatus using the same
CN103428940A (en) * 2012-05-22 2013-12-04 海洋王照明科技股份有限公司 LED signal lamp and control circuit
CN104898515A (en) * 2015-05-07 2015-09-09 罗震 Timing switch as well as control method and control device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841610A (en) * 2005-03-30 2006-10-04 坤胜工业股份有限公司 Key-press type switch and electric apparatus using the same
CN103428940A (en) * 2012-05-22 2013-12-04 海洋王照明科技股份有限公司 LED signal lamp and control circuit
CN104898515A (en) * 2015-05-07 2015-09-09 罗震 Timing switch as well as control method and control device thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112004293A (en) * 2020-08-21 2020-11-27 杭州老板电器股份有限公司 Method and device for controlling intracavity lighting switch of embedded kitchen ware and embedded kitchen ware

Similar Documents

Publication Publication Date Title
CN104219388B (en) Sound control method and device
CN104598111B (en) Switch the method and device of display pattern
CN105657173B (en) Volume adjusting method, device and mobile terminal
CN105653085B (en) Touch-responsive method and apparatus
CN106792075A (en) Video broadcasting method and device
CN105487680B (en) Method, apparatus and terminal for terminal screenshotss
CN105549849A (en) Method and device for processing misoperation instruction
CN104461304A (en) Application control method and device
CN104298547A (en) Terminal setting method and device
CN105093980B (en) Control the method and device of smart machine start and stop
CN107820006A (en) Control the method and device of camera shooting
CN105487786A (en) Application icon management method and device
CN103873684A (en) Application method and device of flashlight
CN106547216A (en) The method and device of intelligent scene trigger condition is set
CN106897009A (en) Mobile device time display method and device
CN105224171A (en) icon display method, device and terminal
CN104049864A (en) Object control method and device
CN104216525A (en) Method and device for mode control of camera application
CN105511777A (en) Session display method and device of touch display screen
CN105224174A (en) The display packing of Paste and device
CN107622189A (en) Optimize the method and apparatus of unlocked by fingerprint
CN104375760B (en) Method for information display and device
CN105187671A (en) Recording method and device
CN107566750A (en) Control method, device and the storage medium of flash lamp
CN105517280B (en) A kind of method and apparatus being illuminated

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170322

RJ01 Rejection of invention patent application after publication