CN106788957A - A kind of method and device of check timer time error - Google Patents

A kind of method and device of check timer time error Download PDF

Info

Publication number
CN106788957A
CN106788957A CN201611254554.XA CN201611254554A CN106788957A CN 106788957 A CN106788957 A CN 106788957A CN 201611254554 A CN201611254554 A CN 201611254554A CN 106788957 A CN106788957 A CN 106788957A
Authority
CN
China
Prior art keywords
time
error
count cycle
remaining time
current remaining
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.)
Granted
Application number
CN201611254554.XA
Other languages
Chinese (zh)
Other versions
CN106788957B (en
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201611254554.XA priority Critical patent/CN106788957B/en
Publication of CN106788957A publication Critical patent/CN106788957A/en
Application granted granted Critical
Publication of CN106788957B publication Critical patent/CN106788957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors

Abstract

The invention discloses a kind of method and device of check timer time error.The method includes:The remaining time of the business that the reception server is issued;Local timer is called to start countdown according to the remaining time;Before countdown terminates, every default time-count cycle, the time-count cycle is calculated relative to the time error between local clock cycles;By the compensating timing error to current remaining time, countdown is continued according to the current remaining time in next time-count cycle.Using the present invention, while disclosure satisfy that good Consumer's Experience, it is ensured that do not increase rectification error on the premise of the pressure or other costs of server.

Description

A kind of method and device of check timer time error
Technical field
The present invention relates to the technical field of error correction, more particularly, to a kind of side of check timer time error Method and device.
Background technology
In the middle of prior art, realize that the demand that a timer is accurate to the second is very common in Web, it can be used Two kinds of sides of function setInterval that the timing of JavaScript timer events setTimeout or window object implementatio8 is called Method is realized.But can either there is regular hour mistake in each time interval of setTimeout or setInterval Difference, if to realize accumulation timing, will be more long with timing time, the error that each interval produces causes to miss by constantly accumulation Difference is constantly exaggerated, so as to the time difference for causing the different periods of distinct device reaches more than ten seconds even more many, excessive time mistakes Difference has user's report failure, and the UI displayings timing result for causing user to see is inconsistent, Consumer's Experience effect extreme difference.
By taking the remaining time count down timer on the taskbar of the live client of user as an example, user enters direct broadcast band It is that a behavior for unicast, i.e. server end can be to the client push live datas of all entrance direct broadcast bands.Live client End passively receives data side as one, and front end displaying countdown will realize countdown by JavaScript, and a user enters Channel, live client receives the timing point data that unicast service comes, the count down timer since timing point, record The moment T1 that this circulation starts, after timer shows timing result every time, the record moment T2 that next time, circulation started.Such as Fruit is before next timer displaying result, and circulation time is poor (T2-T1) twice for calculating, T2-T1=1000 milliseconds in theory, real Border is probably 1002,1000,1001,999 milliseconds etc., there is 1-2 milliseconds of error.Particularly, according to us to being based on The timer of setInterval technologies is calculated, and the error that each second is based on setInterval generations can be up to 5 millis Second, i.e., often by 1000 seconds, the displaying resultant error of timer can reach 1 to 5 second.As can be seen here, the client of prior art There is the error for being difficult to predict in timer, and this error can be as snowball, over time accumulative and increasing, For for on-the-spot broadcasting or other business higher to time precision requirement, such error is likely to result in associated Business is paralysed.
The content of the invention
In view of the above problems, the present invention proposes a kind of method and device of check timer time error, disclosure satisfy that While good Consumer's Experience, it is ensured that do not increase rectification error on the premise of the pressure or other costs of server.
A kind of method of check timer time error is provided in the embodiment of the present invention, including:
The remaining time of the business that the reception server is issued;
Local timer is called to start countdown according to the remaining time;
Before countdown terminates, every default time-count cycle, the time-count cycle is calculated relative to local clock week Time error between phase;
By the compensating timing error to current remaining time, in next time-count cycle according to the current residue Time continues countdown.
Preferably, it is no more than 1 second the time-count cycle.
Preferably, it is no more than 0.5 second the time-count cycle.
Preferably, it is described by the compensating timing error to current remaining time the step of, specifically include:
From this time-count cycle, add up the time error of each time-count cycle;
When accumulative time error exceedes metering threshold value, by the accumulative compensating timing error to it is current remaining when Between;
From next time-count cycle, then add up the time error again.
Preferably, also include:
Before the countdown terminates, the business current remaining time is shown.
Preferably, the step of showing the business current remaining time, specifically includes:
According to default time format, show the business current remaining time rounds value.
Correspondingly, a kind of device of check timer time error is the embodiment of the invention provides, including:
Data receipt unit, the remaining time of the business issued for the reception server;
Timing start unit, for calling local timer to start countdown according to the remaining time;
Error calculation unit, for before countdown terminates, every default time-count cycle, calculates the time-count cycle Relative to the time error between local clock cycles;
Error compensation unit, for by the compensating timing error to current remaining time, in next time-count cycle Continue countdown according to the current remaining time.
Preferably, it is no more than 1 second the time-count cycle;Or, the time-count cycle is no more than 0.5 second.
Preferably, the error compensation unit, specifically includes:
Deviation accumulation unit, for from this time-count cycle, adding up the time error of each time-count cycle;When what is added up When time error exceedes metering threshold value, by the accumulative compensating timing error to current remaining time;From next timing week From phase, then add up the time error again.
Preferably, also include:
Time display unit, for before the countdown terminates, showing the business current remaining time, or, For according to default time format, show the business current remaining time to round value.
Relative to prior art, the scheme that the present invention is provided, first, the remaining time of the business that the reception server is issued, As a example by live, user enters direct broadcast band by client, and server end can be to the client push of all entrance direct broadcast bands Live data, wherein the remaining time comprising business, the business is such as directed to playing in limited time for direct broadcasting room spectators.User visitor Local timer is called to start countdown according to the remaining time in family end;The timer can by setTimeout with SetInterval both approaches are realized, but existing these timers have a different degrees of error, or run it is fast or It is that race is slow, although this error is that Millisecond is other, but if this error of leaving is amplified over time, will cause business Paralyse, such as user takes for also underway, just discovery game after click participation of playing in limited time because timer race is slow Terminate already, influence Consumer's Experience.If timer depends on server to re-issue remaining time, restart countdown, Obviously error before this can be eliminated, and timer will restart the snowball of error.So not only without basic solve problem, And the pressure of server is also add, it is a kind of method drunk poison to quench thirst.Unlike this, this programme terminates it in countdown Before, every default time-count cycle, the time-count cycle is calculated relative to the time error between local clock cycles;By each Client, as reference, is adjusted with reference to the time-count cycle of timer by each local clock to error, can realize The error correction of different clients, by the compensating timing error to current remaining time, next time-count cycle according to The current remaining time continues countdown, is preventive from possible trouble.So as to meet while good Consumer's Experience, it is ensured that Rectification error on the premise of the pressure or other costs of server is not increased.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by practice of the invention.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings Figure.
Fig. 1 is the error calibration method schematic diagram of prior art.
Fig. 2 is a kind of flow chart of the method for check timer time error of the invention.
Fig. 3 is a kind of first embodiment flow chart of the method for check timer time error of the invention.
Fig. 4 is first embodiment of the invention schematic diagram.
Fig. 5 is first embodiment of the invention design sketch.
Fig. 6 is a kind of schematic diagram of the device of check timer time error of the invention.
Fig. 7 is a kind of embodiment flow chart of the method for check timer time error of the invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention.
In some flows of description in description and claims of this specification and above-mentioned accompanying drawing, contain according to Multiple operations of particular order appearance, but it should be clearly understood that these operations can not be according to the suitable of its appearance herein Sequence is performed or executed in parallel, the sequence number such as 101,102 etc. of operation, is only used for distinguishing each different operation, sequence number Any execution sequence is not represented for itself.In addition, these flows can include more or less operation, and these operations can To perform in order or executed in parallel.It should be noted that " first ", " second " herein etc. describes, it is for distinguishing not Same message, equipment, module etc., does not represent sequencing, and it is different types also not limit " first " and " second ".
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The present invention realizes a kind of method of real time correction JAVSCRIPT timer periods errors.When front end displaying is remaining Between countdown by JavaScript realize, server with broadcast or unicast in the form of to subscription client propelling data, The equipment of subscription client receives the data that server comes, and timer starts countdown, record this circulation start when T1 is carved, after timer shows timing result every time, the record moment T2 that next time, circulation started, next timer shows result Before, circulation time is poor twice for calculating, and T2-T1=1000 milliseconds in theory, actual capabilities are 1002,1000,1001,999 etc., If not correcting the error circulated upper one second within the scope of 1 to 5 millisecond before circulation per second starts, error will be ceaselessly Amplified by accumulation, often by 1000s, the displaying resultant error of timer can reach 1 to 5 second.Therefore, in the displaying of front end not Same equipment, different time receives unicast data and the obvious inconsistent of existence time is understood after countdown after a while,
Fig. 1 is the error calibration method schematic diagram of prior art.Originally the error accumulated on this time was eliminated mainly to lead to Cross server and just actively send out broadcast to the client of user at regular intervals, remaining time is updated, when falling original remaining clearly Between count down timer, re-create, as shown in figure 1, the at a time user of direct broadcasting room, by respective customer end A Equipment, B device, the data source of C device-to-servers apply for the remaining time of business that the data source of server is to each visitor again Family end resends the remaining time lesftime of current business:3000S.Because the timer of each client is reset, institute So that display result is unanimously 3000S.
The although less time of occurrence inconsistent probability of this way, but cannot avoid between broadcasting twice when Between error cause display it is inconsistent, and greatly waste hardware and software resource.Due to remaining time count down timer When the unicast or broadcast of server is received every time, the timer before will falling clearly creates new timer, therefore existing Technology one of which solution is to allow server once to be broadcasted by the time of server certain intervals, it is possible to corrected The time error accumulated within this section of interval time.But such way is not suitable for the huge live broadcast service of customer volume, The direct broadcasting room of one big main broadcaster is stayed in same channel in the user that peak period has hundreds of thousands up to a million, if for the time of correcting Error is once broadcast to millions of users, not only wastes flow, also increases the pressure of server, considerably increase hardware into This.This way is that the preferable Consumer's Experience in front end is maintained by increasing the pressure of server, is that one kind is done something against one's will, The way sacrificed future gains to satisfy present needs.Therefore the invention provides alternative solution, as shown in Figure 2.
Fig. 2 is a kind of flow chart of the method for check timer time error of the invention, including:
S101:The remaining time of the business that the reception server is issued;
S102:Local timer is called to start countdown according to the remaining time;
S103:Before countdown terminates, every default time-count cycle, calculate the time-count cycle relative to it is local when Time error between the clock cycle;
S104:By the compensating timing error to current remaining time, in next time-count cycle according to described current Remaining time continue countdown.
Relative to prior art, the scheme that the present invention is provided, first, the remaining time of the business that the reception server is issued, As a example by live, user enters direct broadcast band by client, and server end can be to the client push of all entrance direct broadcast bands Live data, wherein the remaining time comprising business, the business is such as directed to playing in limited time for direct broadcasting room spectators.User visitor Local timer is called to start countdown according to the remaining time in family end;The timer can by setTimeout with SetInterval both approaches are realized, but existing these timers have a different degrees of error, or run it is fast or It is that race is slow, although this error is that Millisecond is other, but if this error of leaving is amplified over time, will cause business Paralyse, such as user takes for also underway, just discovery game after click participation of playing in limited time because timer race is slow Terminate already, influence Consumer's Experience.If timer depends on server to re-issue remaining time, restart countdown, Obviously error before this can be eliminated, and timer will restart the snowball of error.So not only without basic solve problem, And the pressure of server is also add, it is a kind of method drunk poison to quench thirst.Unlike this, this programme terminates it in countdown Before, every default time-count cycle, the time-count cycle is calculated relative to the time error between local clock cycles;By each Client, as reference, is adjusted with reference to the time-count cycle of timer by each local clock to error, can realize The error correction of different clients, by the compensating timing error to current remaining time, next time-count cycle according to The current remaining time continues countdown, is preventive from possible trouble.So as to meet while good Consumer's Experience, it is ensured that Rectification error on the premise of the pressure or other costs of server is not increased.
Fig. 3 is a kind of first embodiment flow chart of the method for check timer time error of the invention.
S201:The remaining time of the business that the reception server is issued;
S202:Local timer is called to start countdown according to the remaining time;
S203:Before countdown terminates, every default time-count cycle, calculate the time-count cycle relative to it is local when Time error between the clock cycle;
S204:From this time-count cycle, add up the time error of each time-count cycle;
S205:When accumulative time error exceedes metering threshold value, the accumulative compensating timing error is remained to current The remaining time;
S206:From next time-count cycle, then add up the time error again.
S207:Before the countdown terminates, the business current remaining time is shown.
Present invention incorporates the realization principle of JAVSCRIPT timers, the conventional implementation bag of JAVSCRIPT timers SetTimeout and two kinds of setInterval is included, their purposes are similar, the result of display is also similar, but both are per second Time error is different, and setTimeout can be bigger than setInterval, because setTimeout methods will not be every 1 second A timeCount function is carried out, but is crossed after setTimeout is called every time and is gone within 1 second to perform timeCount letters again Number.If this means timeCount function bodies need performed for x seconds, then whole function then will just be performed per 1+x seconds Once.And the function that setInterval will not be called by oneself is fettered, simply merely per just repetition at regular intervals Perform a code of function.Therefore, the application scenarios of both approaches can be otherwise varied.SetInterval is adapted to will Scene that certain action is just accurately carried out after at regular intervals often is sought, and setTimeout is adapted to be not desired to due to continuously calling The problem that generation is interfered with each other, the scene for calling the calculating and process time very long that need complexity of particularly each function. Present invention is generally directed to the error problem of remaining time count down timer, illustrated with setInterval more particularly suitable.Therefore The technology explanation of this implementation is as shown in figure 4, will be with setInterval to realize case.
Fig. 4 is first embodiment of the invention schematic diagram.It is described to compare in limited time by taking the compulsory time for play business in on-the-spot broadcasting as an example Match, every game has fixed duration, competes by the mutual PK of two teams people, taskbar is shown on screen, it is allowed between current live Spectators be added thereto a team, before end of match take in competition.Obviously, the present invention is except suitable for above-mentioned compulsory time for play business, Ballot business in limited time can be applied to, such as, there are two main broadcasters to race on the same stage between current live, the audience of direct broadcasting room can Voted to wherein one main broadcaster with before main broadcaster's end of match.Etc. with the time limit be associated at least one in line service.
Assuming that thering are three users A, B, C successively to enter live by respective customer end A equipment, B device, C equipment respectively Between.Direct broadcasting room carries out playing in limited time for war team PK, and A equipment is logged at first, and A equipment receives the list from server data source Multicast data, wherein, remaining time leftTime of the unicast data comprising war team PK matches:3000s.A equipment calls are locally fallen Timer starts countdown according to the remaining time 3000s.Before countdown terminates, every default timing week Phase, the time-count cycle is calculated relative to the time error between local clock cycles.This implementation is using 500 milliseconds as in terms of one When the cycle, according to actual measuring and calculating, every 1000 milliseconds of error between 1~5 millisecond, so, using 500 milliseconds as a timing Cycle, can be by the control errors in each cycle at 0.5~2.5 millisecond.Such as, count down timer have passed through 500 milliseconds, when Preceding remaining time is 2500 milliseconds, but the local clock of reality has already been through 502 milliseconds, by both contrasts, you can Obtain 2 milliseconds of time error.By 2 milliseconds of time error compensation to current remaining time, when current remaining after compensation Between be 2502 milliseconds, in next time-count cycle according to 2502 milliseconds of continuation countdowns of current remaining time.
After user A enters direct broadcasting room 1000S, by B device also into same channel, now, B device connects user B The unicast data of server data source is received, wherein, the unicast data includes the current remaining time leftTime of war team PK matches: 2000s.Because every 500 milliseconds of A equipment oneself can all be compensated once before this, so, now, the remaining time of B device While leftTime displaying results are 2000s, the remaining time leftTime of A equipment is 2000 ± 0.0025s.If display Precision is all 2000s to second, then the display result of A equipment and B device.Similarly, when remaining time being 1000s seconds, user C leads to Client C equipment is crossed into this channel, now the client of user A and user B is already by error transfer factor for several times, so, As shown in figure 4, the displaying result of final remaining time leftTime is 1000s, wherein, ± 0.0025 time error is not The operation and perception of user can be impacted, can be ignored.
Obviously, the error within a second, is also negligible for the display format of time, is come for user Say, the error within a second is also inconspicuous.Preferably, above-mentioned error compensation can be accumulative every by accumulator Individual error time-count cycle, when adding up more than 1 second, ability carry was compensated to remaining time, can so reduce compensation number of times, was improved Operational efficiency.Specifically, A equipment adds up the time error of each time-count cycle from countdown 3000S is started;Made with 0.5 second It it is a time-count cycle, it is assumed that the time error in each cycle is 2 milliseconds, it is assumed that the metering threshold value of accumulator is 1 second, is passed through At 250 seconds, time error is accumulative up to 1 second, when accumulative time error exceedes metering threshold value, will now have influence on and be looked into user The displaying result seen, by the accumulative time error compensation in 1 second to current remaining time;From next time-count cycle, then Again add up the time error, when accumulative time error was again above metering threshold value 1 second, compensate again.Enter from A equipment Enter direct broadcasting room, direct broadcasting room is entered to B device, in middle 1000 seconds, A equipment has been compensated only for 4 times, and the display to user is not influenceed As a result, while improve operational efficiency.Before the countdown terminates, the business current remaining time is shown.Such as Fig. 5 Shown, Fig. 5 is first embodiment of the invention design sketch.Positioned at two cell-phone customer terminal screen lower rights, team PK ratios of as fighting The taskbar of match, wherein, showing the spectators between current remaining time, current live can take in competition before end of match.
Wherein in one embodiment, the step of show the business current remaining time, specifically include:According to default Time format, show the business current remaining time rounds value.As in previous embodiment, 1200.0012 seconds surplus The remaining time, using the second as time format, then show 1200 seconds.If being 20.00002 minutes using minute as time format Remaining time, be shown as 20 minutes.
It should be added that, the time-count cycle is no more than 1 second.The error of each time-count cycle can be controlled 5 Within millisecond, it is preferable that the time-count cycle is no more than 0.5 second.The time error in each cycle can further be reduced.
Fig. 6 is a kind of schematic diagram of the device of check timer time error of the invention, including:
Data receipt unit, the remaining time of the business issued for the reception server;
Timing start unit, for calling local timer to start countdown according to the remaining time;
Error calculation unit, for before countdown terminates, every default time-count cycle, calculates the time-count cycle Relative to the time error between local clock cycles;
Error compensation unit, for by the compensating timing error to current remaining time, in next time-count cycle Continue countdown according to the current remaining time.
Fig. 6 is corresponding with Fig. 2, and the method for operation of unit is identical with method in figure.
Fig. 7 is a kind of embodiment flow chart of the method for check timer time error of the invention.
As shown in fig. 7, the error compensation unit, specifically includes:
Deviation accumulation unit, for from this time-count cycle, adding up the time error of each time-count cycle;When what is added up When time error exceedes metering threshold value, by the accumulative compensating timing error to current remaining time;From next timing week From phase, then add up the time error again.
As shown in fig. 7, also including:
Time display unit, for before the countdown terminates, showing the business current remaining time, or, For according to default time format, show the business current remaining time to round value.
Fig. 7 is corresponding with Fig. 3, and the method for operation of unit is identical with method in figure.
Preferably, the device of described check timer time error, wherein:The time-count cycle is no more than 1 second;Or, The time-count cycle is no more than 0.5 second.
To sum up, a kind of device of real time correction JAVSCRIPT timer periods errors of the invention mainly realizes, every time displaying Before timing result, timing error per second is first released, then per second to carry out once result displaying, the result of displaying is all every time By the correction of two and half seconds error result, so that it is guaranteed that each timing error all in 0.5-2.5 milliseconds without Amplified by ceaselessly accumulation, (0.5-2.5 is in the least at utmost time error to be reduced in real time negligible scope Second) within.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of method of check timer time error, it is characterised in that including:
The remaining time of the business that the reception server is issued;
Local timer is called to start countdown according to the remaining time;
Before countdown terminates, every default time-count cycle, calculate the time-count cycle relative to local clock cycles it Between time error;
By the compensating timing error to current remaining time, in next time-count cycle according to the current remaining time Continue countdown.
2. the method for check timer time error according to claim 1, it is characterised in that:The time-count cycle does not surpass Spend 1 second.
3. the method for check timer time error according to claim 1, it is characterised in that:The time-count cycle does not surpass Spend 0.5 second.
4. the method for check timer time error according to claim 1, it is characterised in that described to miss the time The step of difference compensation is to current remaining time, specifically include:
From this time-count cycle, add up the time error of each time-count cycle;
When accumulative time error exceedes metering threshold value, by the accumulative compensating timing error to current remaining time;
From next time-count cycle, then add up the time error again.
5. the method for the check timer time error according to claim any one of 1-4, it is characterised in that also include:
Before the countdown terminates, the business current remaining time is shown.
6. the method for check timer time error according to claim 5, it is characterised in that the display business is current Remaining time the step of, specifically include:
According to default time format, show the business current remaining time rounds value.
7. a kind of device of check timer time error, it is characterised in that including:
Data receipt unit, the remaining time of the business issued for the reception server;
Timing start unit, for calling local timer to start countdown according to the remaining time;
Error calculation unit, for before countdown terminates, every default time-count cycle, calculates the time-count cycle relative Time error between local clock cycles;
Error compensation unit, for by the compensating timing error to current remaining time, next time-count cycle according to The current remaining time continues countdown.
8. the device of check timer time error according to claim 7, it is characterised in that:The time-count cycle does not surpass Spend 1 second;Or, the time-count cycle is no more than 0.5 second.
9. the device of check timer time error according to claim 7, it is characterised in that the error compensation list Unit, specifically includes:
Deviation accumulation unit, for from this time-count cycle, adding up the time error of each time-count cycle;When the accumulative time When error exceedes metering threshold value, by the accumulative compensating timing error to current remaining time;From next time-count cycle, Add up the time error again again.
10. the device of check timer time error according to claim 7, it is characterised in that also include:
Time display unit, for before the countdown terminates, showing the business current remaining time, or, being used for According to default time format, show the business current remaining time rounds value.
CN201611254554.XA 2016-12-30 2016-12-30 Method and device for correcting time error of timer Active CN106788957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611254554.XA CN106788957B (en) 2016-12-30 2016-12-30 Method and device for correcting time error of timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611254554.XA CN106788957B (en) 2016-12-30 2016-12-30 Method and device for correcting time error of timer

Publications (2)

Publication Number Publication Date
CN106788957A true CN106788957A (en) 2017-05-31
CN106788957B CN106788957B (en) 2022-02-11

Family

ID=58953065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611254554.XA Active CN106788957B (en) 2016-12-30 2016-12-30 Method and device for correcting time error of timer

Country Status (1)

Country Link
CN (1) CN106788957B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107898290A (en) * 2017-10-17 2018-04-13 九阳股份有限公司 A kind of countdown method of food processor
CN108765703A (en) * 2018-05-23 2018-11-06 深圳怡化电脑股份有限公司 Clocking method, device, storage medium and self-service device
CN110391861A (en) * 2018-04-19 2019-10-29 北京京东尚科信息技术有限公司 A kind of method and apparatus of check timer
CN111159612A (en) * 2019-12-27 2020-05-15 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium
CN111338425A (en) * 2020-02-26 2020-06-26 杭州涂鸦信息技术有限公司 Method and system for realizing countdown of wireless low-power-consumption equipment
CN111830892A (en) * 2019-04-22 2020-10-27 新疆金风科技股份有限公司 Wind generating set statistical time calibration method and device and storage medium
CN111901049A (en) * 2020-08-12 2020-11-06 中国科学院长春光学精密机械与物理研究所 Time error compensation method and device for laser communication system and readable storage medium
CN112948071A (en) * 2021-01-26 2021-06-11 北京达佳互联信息技术有限公司 Method, device, equipment, storage medium and program product for processing time information

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6148045A (en) * 1996-05-22 2000-11-14 Mitsubishi Denki Kabushiki Kaisha Digital broadcast receiver
CN1673926A (en) * 2004-03-26 2005-09-28 联发科技股份有限公司 Timer system and related method capable of dynamically compensating a difference of a timer
CN101276232A (en) * 2007-03-27 2008-10-01 联发科技股份有限公司 Real-time clock correction methods and apparatus
CN102722099A (en) * 2012-06-13 2012-10-10 东莞市洲进钟表有限公司 Clock correction system with error computing function and correction method
CN103647614A (en) * 2013-12-04 2014-03-19 上海大学 Method for reliably improving time synchronization precision based on IEEE1588 protocol
US20150185705A1 (en) * 2013-12-26 2015-07-02 Casio Computer Co., Ltd. Electronic device, computer readable recording medium and date and time information obtaining method
CN104933079A (en) * 2014-03-21 2015-09-23 阿里巴巴集团控股有限公司 Browser timing method and system
CN105511256A (en) * 2015-12-14 2016-04-20 国网山西省电力公司大同供电公司 Insulation online high-precision synchronization measurement and time marking method based on master station GPS
CN105741816A (en) * 2014-12-26 2016-07-06 乐金显示有限公司 Display device and self-calibration method thereof
US20160196577A1 (en) * 2014-02-14 2016-07-07 Retailmenot, Inc. Geotargeting of content by dynamically detecting geographically dense collections of mobile computing devices
CN105915308A (en) * 2016-07-08 2016-08-31 腾讯科技(深圳)有限公司 Time synchronization method, device and system
US20160277900A1 (en) * 2015-03-18 2016-09-22 Casio Computer Co., Ltd. Radio wave receiver, radio-controlled timepiece, signal obtaining method and storage medium
US20160337718A1 (en) * 2014-09-23 2016-11-17 Joshua Allen Talbott Automated video production from a plurality of electronic devices

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6148045A (en) * 1996-05-22 2000-11-14 Mitsubishi Denki Kabushiki Kaisha Digital broadcast receiver
CN1673926A (en) * 2004-03-26 2005-09-28 联发科技股份有限公司 Timer system and related method capable of dynamically compensating a difference of a timer
CN101276232A (en) * 2007-03-27 2008-10-01 联发科技股份有限公司 Real-time clock correction methods and apparatus
CN102722099A (en) * 2012-06-13 2012-10-10 东莞市洲进钟表有限公司 Clock correction system with error computing function and correction method
CN103647614A (en) * 2013-12-04 2014-03-19 上海大学 Method for reliably improving time synchronization precision based on IEEE1588 protocol
US20150185705A1 (en) * 2013-12-26 2015-07-02 Casio Computer Co., Ltd. Electronic device, computer readable recording medium and date and time information obtaining method
US20160196577A1 (en) * 2014-02-14 2016-07-07 Retailmenot, Inc. Geotargeting of content by dynamically detecting geographically dense collections of mobile computing devices
CN104933079A (en) * 2014-03-21 2015-09-23 阿里巴巴集团控股有限公司 Browser timing method and system
US20160337718A1 (en) * 2014-09-23 2016-11-17 Joshua Allen Talbott Automated video production from a plurality of electronic devices
CN105741816A (en) * 2014-12-26 2016-07-06 乐金显示有限公司 Display device and self-calibration method thereof
US20160277900A1 (en) * 2015-03-18 2016-09-22 Casio Computer Co., Ltd. Radio wave receiver, radio-controlled timepiece, signal obtaining method and storage medium
CN105511256A (en) * 2015-12-14 2016-04-20 国网山西省电力公司大同供电公司 Insulation online high-precision synchronization measurement and time marking method based on master station GPS
CN105915308A (en) * 2016-07-08 2016-08-31 腾讯科技(深圳)有限公司 Time synchronization method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
魏群等: "基于整体误差校正的石英计时器计时精度提高方法研究", 《质量技术监督研究》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107898290A (en) * 2017-10-17 2018-04-13 九阳股份有限公司 A kind of countdown method of food processor
CN107898290B (en) * 2017-10-17 2020-03-24 九阳股份有限公司 Countdown method of food processor
CN110391861A (en) * 2018-04-19 2019-10-29 北京京东尚科信息技术有限公司 A kind of method and apparatus of check timer
CN110391861B (en) * 2018-04-19 2023-12-05 北京京东尚科信息技术有限公司 Method, device, equipment and storage medium for correcting timer
CN108765703A (en) * 2018-05-23 2018-11-06 深圳怡化电脑股份有限公司 Clocking method, device, storage medium and self-service device
CN111830892A (en) * 2019-04-22 2020-10-27 新疆金风科技股份有限公司 Wind generating set statistical time calibration method and device and storage medium
CN111159612A (en) * 2019-12-27 2020-05-15 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium
CN111159612B (en) * 2019-12-27 2024-04-19 广州华多网络科技有限公司 Countdown method, system, device, computer equipment and storage medium
CN111338425A (en) * 2020-02-26 2020-06-26 杭州涂鸦信息技术有限公司 Method and system for realizing countdown of wireless low-power-consumption equipment
CN111338425B (en) * 2020-02-26 2021-08-20 杭州涂鸦信息技术有限公司 Method and system for realizing countdown of wireless low-power-consumption equipment
CN111901049A (en) * 2020-08-12 2020-11-06 中国科学院长春光学精密机械与物理研究所 Time error compensation method and device for laser communication system and readable storage medium
CN111901049B (en) * 2020-08-12 2021-07-06 中国科学院长春光学精密机械与物理研究所 Time error compensation method and device for laser communication system and readable storage medium
CN112948071A (en) * 2021-01-26 2021-06-11 北京达佳互联信息技术有限公司 Method, device, equipment, storage medium and program product for processing time information

Also Published As

Publication number Publication date
CN106788957B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN106788957A (en) A kind of method and device of check timer time error
CN100534130C (en) Method, system and equipment to recommend program to television users
US11317145B2 (en) Method, apparatus, computer program and system for determining information related to the audience of an audio-visual content program
CN101827250B (en) Implementation method and system of interactive business of mobile terminal television
CN106303732A (en) Interactive approach based on net cast, Apparatus and system
CN110099283A (en) Information-pushing method, device, equipment and storage medium
CN109309860A (en) Methods of exhibiting and device, storage medium, the electronic device of prompt information
ZA200601821B (en) Pausing timebase when identification present in broadcast programme
CN109714622A (en) A kind of video data handling procedure, device and electronic equipment
CN101965716A (en) Multichannel equity Media Stream transmits
CN104468465B (en) Wheat sequence controlling method, server, client and computer system
CN108174267A (en) The sending device of interactive information, method and computer readable storage medium in live streaming
CN110099284A (en) A kind of generation method fast made a speech, device and server
CN104219571A (en) Method and device for automatically providing watching focus
CN111107434A (en) Information recommendation method and device
US20100153189A1 (en) Method and apparatus for processing responses from a remote, live audience
CN108322764A (en) Real-time interactive implementation method and device
CN105872756B (en) A kind of method, apparatus and system for sharing information of televising
US8036141B2 (en) Apparatus and method for managing a network
CN109819302A (en) Multimedia file broadcasting control method and device
US10003835B2 (en) Device control in backup media-broadcast system
CN104079838A (en) Character generator with financial data caption making and playing function
CN115515004B (en) Multi-screen control system based on Android
CN107017978B (en) Information synchronization method and device between terminal devices
RU2400940C2 (en) Method for synchronous reproduction of interactive data

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
GR01 Patent grant
GR01 Patent grant