Clock device and computer-readable record medium storing program for implementing the same
AssigneeBrother Kogyo Kabushiki Kaisha
InventorHiroshi Shibata
Life of this patent
Estimating the term…
Abstract
A clock device acquires time information representing present time from an external device at preset time intervals, corrects time of an internal clock based on the time information, calculates an error of the time of the internal clock based on the present time represented by the time information, and changes a first set value of the time interval based on the error. The changing updates the first set value to a second set value, which is m times the first set value when the error is smaller than a first threshold value, while updating the first set value to a second set value, which is n times the set value when the error is larger than a second threshold value larger than the first threshold value (m, n: positive values satisfying m>1, n<1 and m·n≠1).
Claims18
A clock device, comprising:
- an internal clock configured to keep time;
- and
- a processing unit configured to perform the steps of:
- acquiring time information representing present time from an external device at preset time intervals;
- correcting the time kept by the internal clock based on the time information;
- calculating an error of the time kept by the internal clock based on the present time represented by the time information;
- and
- changing a first set value of the time interval for the acquisition of the time information by the acquiring based on the calculated error, wherein the changing further includes
- updating the first set value of the time interval to a second set value which is m times the first set value when the error is smaller than a first threshold value, and
- updating the first set value of the time interval to a third set value, which is n times the first set value when the error is larger than a second threshold value, the second threshold value being larger than the first threshold value, and
- wherein the multiplying factors m and n are positive values satisfying conditions m>1, n<1 and m·n≠1.
A computer-readable storage medium storing computer-readable instructions that, when executed by a computer cause the computer, to perform the steps of:
- acquiring time information representing present time from an external device at preset time intervals;
- correcting time kept by an internal clock based on the time information;
- calculating an error of the time kept by the internal clock based on the present time represented by the time information;
- and
- changing a first set value of the time interval for the acquisition of the time information by the acquiring step based on the error calculated by the calculating step, the changing step further including
- updating the first set value of the time interval to a second set value, which is m times the first set value when the error is smaller than a first threshold value, and
- updating the first set value of the time interval to a third set value, which is n times the first set value when the error is larger than a second threshold value, the second threshold value being larger than the first threshold value, and
- wherein the multiplying factors m and n are positive values satisfying conditions m>1, n<1 and m·n≠1.
Dependencies are inferred from the claim text.