Timing alarm device and method for arranging timer therein
A technology of alarm device and timer, which is applied in the direction of generating time signal, instrument, and indicating time at a predetermined time, which can solve the problems of inaccurate timing, timer delay, increasing system burden, etc., and achieve the effect of saving system resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0020] figure 1 is a flowchart describing a method of setting a timer in a timer alarm device according to the first embodiment of the present invention.
[0021] Such as figure 1 As shown, in step S101, the set alarm time for which a predetermined alarm operation is to be performed is acquired. In step S102, the current remaining duration between the current time and the alarm time is calculated. In step S103, the duration of the timer is set to a timing period less than or equal to the current remaining duration, and timing is started. When the timer expires, in step S104, the current remaining duration between the current time when the timer expires and the alarm time is calculated. In step S105, compare the current remaining duration with the predetermined time threshold, wherein, if the current remaining duration is greater than the predetermined time threshold, then repeat steps S103, S104, S105; if the current remaining duration is less than or equal to the predete...
no. 2 example
[0040] figure 2 It is a flow chart describing the method for setting a timer in a timing alarm device according to the second embodiment of the present invention, wherein except that step S203 is different from step S103 in the first embodiment, the remaining steps (S201-S202, S204 -S209) are the same as in the first embodiment. A description of the same steps is omitted here.
[0041] Step S203 in the second embodiment will be described in detail below. In step S203, the duration of the timer is set to half of the current remaining duration and timing starts.
[0042] That is to say, assuming that, as in the example of the first embodiment, the alarm time obtained and set in step S101 is 18:30:00, and the current time is known to be 8:00:00, then the current remaining duration at this time is 10 hours 30 minutes, then the duration of the timer can be set to 1 / 2 of the current remaining duration, namely 5 hours and 15 minutes, and start counting. When the current remainin...
no. 3 example
[0045] image 3 is part of a flowchart describing a method of setting a timer in a timed alarm device according to a third embodiment of the present invention. Except that step S303 of the third embodiment is different from step S103 of the first embodiment, other steps (S301-S302, S304-S309) (not shown) are the same as those of the first embodiment. A description of the same steps is omitted here.
[0046] Step S303 in the third embodiment will be described in detail. In step S303, in step S3031, compare the provided multiple predetermined timing durations with different sizes and the current remaining duration. In step S3032, the largest predetermined duration among all the predetermined timing durations less than or equal to the current remaining duration is selected from the plurality of predetermined timing durations as the duration of the timing period. Here, multiple predetermined timing durations with different sizes may be provided in advance, or provided according...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 