CN109189147A - Method for synchronizing time and device calculate equipment and storage medium - Google Patents

Method for synchronizing time and device calculate equipment and storage medium Download PDF

Info

Publication number
CN109189147A
CN109189147A CN201811026429.2A CN201811026429A CN109189147A CN 109189147 A CN109189147 A CN 109189147A CN 201811026429 A CN201811026429 A CN 201811026429A CN 109189147 A CN109189147 A CN 109189147A
Authority
CN
China
Prior art keywords
time
client
answer
exam
server
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
CN201811026429.2A
Other languages
Chinese (zh)
Other versions
CN109189147B (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.)
Beijing Ape Power Technology Co.,Ltd.
Original Assignee
Beijing Chalk Future 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 Beijing Chalk Future Technology Co Ltd filed Critical Beijing Chalk Future Technology Co Ltd
Priority to CN201811026429.2A priority Critical patent/CN109189147B/en
Publication of CN109189147A publication Critical patent/CN109189147A/en
Application granted granted Critical
Publication of CN109189147B publication Critical patent/CN109189147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

This specification provides a kind of method for synchronizing time and device, calculates equipment and storage medium, wherein the method for synchronizing time includes: to log in exam software, obtains the structured data information of paper and acquisition and stores the client of time t1 and server-side record that client logs in exam software and log in the time t2 of exam software;Determine the first time difference of the client time Yu the server-side time;The client time is adjusted according to the first time difference, and using client time adjusted as the standard time of the client;When the standard time arrival of the client sets the exam the time, open answer permission;When the standard time arrival of the client closes and examines the time, answer permission is withdrawn.

Description

Method for synchronizing time and device calculate equipment and storage medium
Technical field
This specification is related to Time synchronization technique field, in particular to a kind of method for synchronizing time and device calculate equipment And storage medium.
Background technique
In life now, network is so flourishing, can be taken an examination by On-line Examining system, and it is high-precision The time synchronization of line examination is to guarantee online testing to the justice of each candidate.On the problem of handling time synchronization, usually Function or calculation expression is called to synchronize the time using after specified millisecond number, or according to sending out at regular intervals It send Asynchronous Request to obtain and carries out time synchronization, both methods problem is that the time tested in one minute time all can It differs several seconds, and also has relationship with the performance of mobile device, such precision is unable to satisfy in examination demand, long The examination of time, difference the time also will increase, be for candidate it is inequitable, largely affect online testing software Fairness so that candidate experience it is bad.
Summary of the invention
In view of this, this specification embodiment provides a kind of method for synchronizing time and device, calculates equipment and storage is situated between Matter, to solve technological deficiency existing in the prior art.
According to this specification embodiment in a first aspect, providing a kind of method for synchronizing time, comprising:
Exam software is logged in, the structured data information of paper is obtained and acquisition and stores client and logs in exam software The client of time t1 and server-side record logs in the time t2 of exam software;
Determine the first time difference of the client time Yu the server-side time;
The client time is adjusted according to the first time difference, and client time adjusted is made For the standard time of the client;
When the standard time arrival of the client sets the exam the time, open answer permission;
When the standard time arrival of the client closes and examines the time, answer permission is withdrawn.
Optionally, the structured data information includes:
According to the structured data information of topic serial number division or according to the structured data information of page number division or according to topic type The structured data information of division.
Optionally, when the standard time arrival of the client sets the exam the time, after open answer permission further include:
The server-side time is reacquired every set time period T, judges the server-side time and the client Whether the standard time at end is consistent;
When judging result is inconsistent, the standard time of the client is adjusted according to the server-side time It is whole.
Optionally, when the standard time arrival of the client sets the exam the time, after open answer permission further include:
When detect candidate exit exam software lay equal stress on new login exam software when, when obtaining the last client Between with the last fiducial time and whether consistent both judge;
When judging result is inconsistent, the last client time is carried out according to the last fiducial time Adjustment.
Optionally, further includes:
The client time CT2 of current period T and the client time CT1 in a upper period were obtained, two periods are compared Time difference △ T1=CT2-CT1-T, and compare the size of △ T1 and preset value;
The △ T1 is greater than preset value, is adjusted again to the client time, and △ T=△ T1+ is poor at the first time Value;
The time of the client of readjustment=CT2- △ T, using client time adjusted as the client Standard time.
Optionally, when the standard time arrival of the client sets the exam the time, after open answer permission further include:
The first examination question data of paper are obtained according to the structured data information, cache the first examination question data and basis Preset exhibition strategy shows the first examination question data;
The answer data of acquisition candidate and the answer progress msg, answer data are cached;
The second examination question data are requested to server according to the answer progress msg and structured data information, receives and caches The second examination question data;
The second examination question data are shown according to the preset exhibition strategy, are received the answer data of candidate and are delayed It deposits;
Server is uploaded in a manner of incremental transmission according to the answer data that preset upload strategy will be cached.
Optionally, when the standard time arrival of the client closes and examines the time, answer permission is withdrawn further include:
Standard time of the client, which reaches, closes when examining the time, and the exam software withdraws the answer power of whole candidates Limit, and examination paper is uniformly collected.
According to the second aspect of this specification embodiment, a kind of time synchronism apparatus is provided, including
It obtains module: being configured as logging in exam software, obtain the structured data information of paper and acquisition and store visitor The client of time t1 and server-side record that family end logs in exam software log in the time t2 of exam software;
Determining module: the first time difference of the client time Yu the server-side time are configured to determine that;
Adjustment module: being configured as being adjusted the client time according to the first time difference, and will adjust Standard time of the client time as the client after whole;
Open module: it is configured as when the standard time arrival of the client sets the exam the time, open answer permission;
Recovering modules: it is configured as withdrawing answer permission when the standard time arrival of the client closes and examines the time.
Optionally, the structured data information includes:
According to the structured data information of topic serial number division or according to the structured data information of page number division or according to topic type The structured data information of division.
Optionally, the open module further include:
First open cell: it is configured as reacquiring server-side time every set time period T, described in judgement Whether the server-side time is consistent with the standard time of the client;
Second open cell: it is configured as when judging result is inconsistent, according to the server-side time to the visitor The standard time at family end is adjusted.
Optionally, the open module further include:
Third open cell: be configured as when detect candidate exit exam software lay equal stress on new login exam software when, It obtains the last client time and the last fiducial time and judges whether the two is consistent;
4th open cell: it is configured as when judging result is inconsistent, according to the last fiducial time to most Nearly primary client time is adjusted.
Optionally, the open module further include:
5th open cell: when being configured as obtaining the client time CT2 of current period T and the client in a upper period Between CT1, compare the time difference △ T1=CT2-CT1-T in two periods, and compare the size of △ T1 and preset value;
6th open cell: being configured as the △ T1 greater than preset value, be adjusted again to the client time, △ T=△ T1+ first time difference;
7th open cell: it is configured as the time=CT2- △ T for the client readjusted, by client adjusted Standard time of the time as the client.
Optionally, the open module further include:
Display unit: it is configured as obtaining the first examination question data of paper according to the structured data information, described in caching First examination question data simultaneously show the first examination question data according to preset exhibition strategy;
Answer unit: be configured as obtain candidate answer data and the answer progress msg, by answer data into Row caching;
The acquisition module is additionally configured to be requested according to the answer progress msg and structured data information to server Second examination question data receive and cache the second examination question data;
The display unit is additionally configured to show the second examination question data according to the preset exhibition strategy;
The answer unit is additionally configured to receive the answer data of candidate and cache;
Uploading unit: it is configured as uploading the tactful answer data that will be cached in a manner of incremental transmission according to preset It is uploaded to server.
Optionally, the recovering modules are configured to:
Standard time of the client, which reaches, closes when examining the time, and the exam software withdraws the answer power of whole candidates Limit, and examination paper is uniformly collected.
According to the third aspect of this specification embodiment, a kind of calculating equipment is provided, including memory, processor and deposit The computer instruction that can be run on a memory and on a processor is stored up, when the processor realizes described when executing described instruction Between synchronous method the step of.
According to the fourth aspect of this specification embodiment, a kind of computer readable storage medium is provided, is stored with meter The step of calculation machine instruction, which realizes the method for synchronizing time when being executed by processor.
In this specification embodiment, by logging in exam software, obtains the structured data information of paper and acquisition and deposit The client of time t1 and server-side record that storage client logs in exam software log in the time t2 of exam software, really The first time difference of the fixed client time and the server-side time, according to the first time difference to the client The end time is adjusted, and using client time adjusted as the standard time of the client, in the client Standard time reaches when setting the exam the time, open answer permission, the standard time of the client reach close examine the time when, withdraw Answer permission, the method for synchronizing time is not influenced by client time with caused by server-side time irreversibility, and works as client The end time is modified, and time synchronization still can be accurately carried out, and when candidate exits exam software, it is soft to reenter examination Part causes the standard time to change, and still can accurately carry out time synchronization, guarantees the test time one of whole candidates It causes, collects paper time consistency.
Detailed description of the invention
Fig. 1 is the structure chart provided by the embodiments of the present application for calculating equipment;
Fig. 2 is the flow chart of method for synchronizing time provided by the embodiments of the present application;
Fig. 3 is the flow chart of method for synchronizing time provided by the embodiments of the present application;
Fig. 4 is the module map of time synchronism apparatus provided by the embodiments of the present application.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
In this application, a kind of method for synchronizing time is provided, is described in detail one by one in the following embodiments.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100 Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130, Database 150 is for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 1 of equipment 100 is calculated It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 is merely for the sake of example Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions Part.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type Server.
Wherein, processor 120 can execute the step in method for synchronizing time shown in Fig. 2.Fig. 2 is shown according to this Shen Please an embodiment method for synchronizing time flow chart, including step 202 is to step 210.
Step 202: logging in exam software, obtain the structured data information of paper and acquisition and store client and log in and examine The client of the time t1 and server-side record that try software log in the time t2 of exam software.
In one embodiment of this specification, the structured data information includes:
According to the structured data information of topic serial number division or according to the structured data information of page number division or according to topic type The structured data information of division.
For example, candidate participates in a maths exam by exam software in one embodiment of this specification, stepped in candidate Exam software is recorded, exam software automatically extracts client time t1 and server-side time t2, and t1 and t2 are stored, and is used for Calibrate client time.
Step 204: determining the first time difference of the client time Yu the server-side time.
For example, candidate logs in exam software in one embodiment of this specification, recording client time is nine points 03 Point, the server-side time was nine o'clock sharps, then the first time difference of client time and server-side time are three minutes.
Step 206: the client time being adjusted according to the first time difference, and by client adjusted Hold standard time of the time as the client.
For example, candidate logs in exam software in one embodiment of this specification, recording client time is nine points 03 Point, the server-side time was nine o'clock sharps, then the first time difference of client time and server-side time are three minutes, passed through client Three minutes client times being adjusted after being adjusted of first time difference were nine o'clock sharps by end, made client time and clothes Business end time synchronization, and using client time adjusted as the standard time of client.
Step 208: when the standard time arrival of the client sets the exam the time, open answer permission;
In one embodiment of this specification, when the standard time arrival of the client sets the exam the time, open answer permission Later further include:
The server-side time is reacquired every set time period T, judges the server-side time and the client Whether the standard time at end is consistent;
When judging result is inconsistent, the standard time of the client is adjusted according to the server-side time It is whole.
In one embodiment of this specification, when the standard time arrival of the client sets the exam the time, open answer permission Later further include:
When detect candidate exit exam software lay equal stress on new login exam software when, when obtaining the last client Between with the last fiducial time and whether consistent both judge;
When judging result is inconsistent, the last client time is carried out according to the last fiducial time Adjustment.
In one embodiment of this specification, further includes:
The client time CT2 of current period T and the client time CT1 in a upper period were obtained, two periods are compared Time difference △ T1=CT2-CT1-T, and compare the size of △ T1 and preset value;
The △ T1 is greater than preset value, is adjusted again to the client time, and △ T=△ T1+ is poor at the first time Value;
The time of the client of readjustment=CT2- △ T, using client time adjusted as the client Standard time.
For example, candidate is taken an exam by online testing software in one embodiment of this specification, the paper time is submitted to be 9:40, examination have progressed to 9:30, and during examination, certain candidate will be revised as 9:25 client time, make visitor Family end standard time and server-side time irreversibility.
By detecting every cycle time 5 minutes to client time, the client time and the clothes are determined Business end time irreversibility determines that the time difference of modification is 5 minutes, the client of readjustment by CT2-CT1-T=△ T1 Time=CT2- △ T1, by cycle time 5 minutes, the client time of readjustment was 9:35, using 9:35 as client The standard time at end, examination continue.
In one embodiment of this specification, when the standard time arrival of the client sets the exam the time, open answer permission Later further include:
The first examination question data of paper are obtained according to the structured data information, cache the first examination question data and basis Preset exhibition strategy shows the first examination question data;
The answer data of acquisition candidate and the answer progress msg, answer data are cached;
The second examination question data are requested to server according to the answer progress msg and structured data information, receives and caches The second examination question data;
The second examination question data are shown according to the preset exhibition strategy, are received the answer data of candidate and are delayed It deposits;
Server is uploaded in a manner of incremental transmission according to the answer data that preset upload strategy will be cached.
In one embodiment of this specification, the first examination question data include:
The whole examination questions or paper to be set the exam of a kind of topic type of one of examination question or paper to be set the exam of the paper to be set the exam One page examination question.
In one embodiment of this specification, the preset exhibition strategy includes:
From the examination question data cached extract setting number problem to candidate show or by paging show in a manner of to Candidate shows.
In one embodiment of this specification, the answer progress msg obtains in the following manner:
The answer progress msg is currently answered by the current answer position of acquisition the first examination question data according to described It inscribes ratio of the position in the first examination question data and obtains the answer progress msg.
In one embodiment of this specification, it is described by answer data carry out caching include:
Answer data are cached with the incidence relation of corresponding examination question topic according to answer data.
It is described to be requested according to the answer progress msg and structured data information to server in one embodiment of this specification Second examination question data include:
Judge whether the corresponding ratio of answer progress msg of the first examination question data reaches the threshold value of setting;
When judging result is the threshold value for reaching setting, the first examination question data described in the structured data information are obtained The information of next examination question data;
The second examination question data are requested to the server according to the information of next examination question data.
In one embodiment of this specification, further includes:
Click in the page page up or when lower one page button when receiving candidate, according to the answer data cached with it is right It answers the incidence relation of examination question to load and shows the examination question data and answer data of corresponding page.
In one embodiment of this specification, further includes:
When detecting that candidate re-enters the answer data of current page, according to the modification of current page or newly-increased Answer data and corresponding examination question serial number are updated the answer data cached.
In one embodiment of this specification, described when detecting that candidate re-enters the answer data of current page, The answer data cached are updated according to the modification of current page or newly-increased answer data and corresponding examination question serial number Later further include:
If caching answer data where the modification of current page or newly-increased answer data and corresponding examination question serial number it It is preceding to be uploaded to the server, then only the modification of current page or newly-increased answer data and corresponding examination question serial number are uploaded To the server.
In one embodiment of this specification, the preset upload strategy includes:
The answer data for setting number road examination question are uploaded in batches or carry out answer data in batches according to setting byte number It uploads or uploads answer data in batches according to the examination question page number.
For example, On-line Examining system carries out a maths exam, and uses incremental transmission in one embodiment of this specification Mode submit answer data, often answered 10 problems using candidate, client answering 10 problems answered automatically Topic data are uploaded to server, and server-side is according to answer data and the incidence relation of corresponding examination question by answer corresponding to 10 problems Data are judged and are cached.
The online testing method provided through the embodiment of the present invention utilizes the caching and structured data information to examination question data It is combined with answer progress msg, realizes the preloading of examination question data, reduced under candidate requests in examination process The response time of one examination question data, and by being cached to examination question data and answer data in client, reduce to clothes The increment of the request amount of business device, candidate submits answer data, avoids synchronization a large number of users and paper is submitted to cause to service Device load too high situation, improves the stability of On-line Examining system on the whole.
Step 210: when the standard time arrival of the client closes and examines the time, withdrawing answer permission.
In one embodiment of this specification, when the standard time arrival of the client closes and examines the time, answer permission is withdrawn Further include:
Standard time of the client, which reaches, closes when examining the time, and the exam software withdraws the answer power of whole candidates Limit, and examination paper is uniformly collected.
Exam software is logged in by candidate, obtains the structured data information of paper, and it is soft to store client login examination The time and service end of part records the time that the client logs in software, prepares for the calibration client time, determines The first time difference of the client time and the server-side time, according to the first time difference to the client Time is adjusted, and using client time adjusted as the standard time of the client, and the first time is poor Value is eliminated, and client time and server-side time synchronization are made, and makes client time and server-side time by the above method It synchronizes, determines that the precision of client calibration is high, and candidate modifies client time or candidate exits exam software Entering exam software again causes client time to change, and can be carried out again to client time by the above method Time synchronization, when the standard time arrival of the client sets the exam the time, open answer permission, in the standard of the client Time, which reaches, closes when examining the time, withdraws answer permission, and the test time of whole candidates is equal accurate.
Fig. 3 is to show the method for synchronizing time of one embodiment of this specification, and the method for synchronizing time is to maths exam For be described, which includes:
Step 302: user enters exam software.
Step 304: judging whether user first enters exam software.
Step 306: first entering exam software, obtain the structured data information of mathematics examination, and store the last visitor Family end time and the last server-side time.
In one embodiment of this specification, the structured data information includes:
According to the structured data information of topic serial number division or according to the structured data information of page number division or according to topic type The structured data information of division.
Step 308: obtaining the server-side time.
By obtaining the server-side time, will client time as most accurately the time calibrates client time.
For example, candidate participates in a maths exam by exam software in one embodiment of this specification, stepped in candidate Exam software is recorded, exam software automatically extracts client time t1 and server-side time t2, and t1 and t2 are stored, and is used for Calibrate client time.
Step 310: calculating the client time and the server-side time difference.
For example, candidate logs in exam software in one embodiment of this specification, recording client time is nine points 03 Point, the server-side time was nine o'clock sharps, then the first time difference of client time and server-side time are three minutes.
Step 312: according to time difference, will be adjusted client time.
The client time is adjusted by the time difference, passes through the determination time difference, Ke Yijing True is adjusted client time, keeps the test time of whole candidates identical.
Step 314: judging whether client time occurs.
For example, candidate logs in exam software in one embodiment of this specification, recording client time is nine points 03 Point, the server-side time was nine o'clock sharps, then the first time difference of client time and server-side time are three minutes, passed through client Three minutes client times being adjusted after being adjusted of first time difference were nine o'clock sharps by end, made client time and clothes Business end time synchronization, and using client time adjusted as the standard time of client.
Step 316: when modifying client time, calculating current period client time and upper period client The cycle time difference of time.
Step 318: cycle time difference is compared with threshold value.
Step 320: when reentering exam software, client time changes, compare the active client time with Store the time difference of the variation of client time.
Step 322: the time difference of variation is compared with threshold value.
By the way that cycle time difference to be compared with preset value respectively with the time difference of variation, client time is determined It modifies, calibration again is carried out to client time, makes client time and server-side time synchronization.
Step 324: by obtaining the client time CT2 of current period T and the client time CT1 in a upper period, than Compared with the time difference △ T1=CT2-CT1-T in two periods, and compare the size of △ T1 and preset value;
The △ T1 is greater than preset value, is adjusted again to the client time, and △ T=△ T1+ is poor at the first time Value;
The time of the client of readjustment=CT2- △ T, using client time adjusted as the client Standard time.
Using the client time of adjustment as the standard time of client.
For example, candidate is taken an exam by online testing software in one embodiment of this specification, the paper time is submitted to be 9:40, examination have progressed to 9:30, and during examination, certain candidate will be revised as 9:25 client time, make visitor Family end standard time and server-side time irreversibility.
By detecting every cycle time 5 minutes to client time, the client time and the clothes are determined Business end time irreversibility determines that the time difference of modification is 5 minutes, the client of readjustment by CT2-CT1-T=△ T1 Time=CT2- △ T1, by cycle time 5 minutes, the client time of readjustment was 9:35, using 9:35 as client The standard time at end, examination continue.
Client time is synchronized with the server-side time by the above method, determines the precision of client calibration Height, and candidate modifies client time or candidate and exits exam software and enter exam software again leads to client time It changes, time synchronization can be carried out by the above method to client time again, in the standard time of the client Arrival set the exam the time when, open answer permission, the standard time of the client reach close examine the time when, withdraw answer power Limit, the test time of whole candidates are equal accurate.
Corresponding with above method embodiment, this specification additionally provides time synchronism apparatus embodiment, and Fig. 4 shows this The module map of the method for synchronizing time of one embodiment of specification.As shown in figure 4, the device 400 includes:
It obtains module 402: being configured as logging in exam software, obtain the structured data information of paper and acquisition and store The client of time t1 and server-side record that client logs in exam software log in the time t2 of exam software;
Determining module 404: the first time difference of the client time Yu the server-side time are configured to determine that;
Adjustment module 406: being configured as being adjusted the client time according to the first time difference, and will Standard time of the client time adjusted as the client;
Open module 408: it is configured as when the standard time arrival of the client sets the exam the time, open answer power Limit;
Recovering modules 410: it is configured as withdrawing answer power when the standard time arrival of the client closes and examines the time Limit.
In an optional embodiment, the structured data information includes:
According to the structured data information of topic serial number division or according to the structured data information of page number division or according to topic type The structured data information of division.
In an optional embodiment, the open module further include:
First open cell: it is configured as reacquiring server-side time every set time period T, described in judgement Whether the server-side time is consistent with the standard time of the client;
Second open cell: it is configured as when judging result is inconsistent, according to the server-side time to the visitor The standard time at family end is adjusted.
In an optional embodiment, the open module further include:
Third open cell: be configured as when detect candidate exit exam software lay equal stress on new login exam software when, It obtains the last client time and the last fiducial time and judges whether the two is consistent;
4th open cell: it is configured as when judging result is inconsistent, according to the last fiducial time to most Nearly primary client time is adjusted.
In an optional embodiment, the open module further include:
5th open cell: when being configured as obtaining the client time CT2 of current period T and the client in a upper period Between CT1, compare the time difference △ T1=CT2-CT1-T in two periods, and compare the size of △ T1 and preset value;
6th open cell: being configured as the △ T1 greater than preset value, be adjusted again to the client time, △ T=△ T1+ first time difference;
7th open cell: it is configured as the time=CT2- △ T for the client readjusted, by client adjusted Standard time of the time as the client.
In an optional embodiment, the open module further include:
Display unit: it is configured as obtaining the first examination question data of paper according to the structured data information, described in caching First examination question data simultaneously show the first examination question data according to preset exhibition strategy;
Answer unit: be configured as obtain candidate answer data and the answer progress msg, by answer data into Row caching;
The acquisition module is additionally configured to be requested according to the answer progress msg and structured data information to server Second examination question data receive and cache the second examination question data;
The display unit is additionally configured to show the second examination question data according to the preset exhibition strategy;
The answer unit is additionally configured to receive the answer data of candidate and cache;
Uploading unit: it is configured as uploading the tactful answer data that will be cached in a manner of incremental transmission according to preset It is uploaded to server.
In an optional embodiment, the recovering modules are configured to:
Standard time of the client, which reaches, closes when examining the time, and the exam software withdraws the answer power of whole candidates Limit, and examination paper is uniformly collected.
A kind of calculating equipment is also provided in one embodiment of this specification, including memory, processor and is stored in memory Computer instruction that is upper and can running on a processor, the processor realize the method for synchronizing time when executing described instruction The step of.
One embodiment of this specification also provides a kind of computer readable storage medium, is stored with computer instruction, this refers to The step of method for synchronizing time is realized when order is executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment is it should be noted that the storage The technical solution of medium and the technical solution of above-mentioned method for synchronizing time belong to same design, and the technical solution of storage medium is not The detail content of detailed description may refer to the description of the technical solution of above-mentioned method for synchronizing time.
The computer instruction includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, this specification is not limited by the described action sequence, because For according to this specification, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Necessary to specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
This specification preferred embodiment disclosed above is only intended to help to illustrate this specification.Alternative embodiment is not All details of detailed descriptionthe, do not limit the invention to the specific embodiments described.Obviously, according in this specification Hold, can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain this theory The principle and practical application of bright book, so that skilled artisan be enable to better understand and utilize this specification.This Specification is limited only by the claims and their full scope and equivalents.

Claims (16)

1. a kind of method for synchronizing time characterized by comprising
Exam software is logged in, the structured data information of paper is obtained and acquisition and stores the time that client logs in exam software The client of t1 and server-side record logs in the time t2 of exam software;
Determine the first time difference of the client time Yu the server-side time;
The client time is adjusted according to the first time difference, and using client time adjusted as institute State the standard time of client;
When the standard time arrival of the client sets the exam the time, open answer permission;
When the standard time arrival of the client closes and examines the time, answer permission is withdrawn.
2. the method according to claim 1, wherein the structured data information includes:
The structured data information divided according to topic serial number or the structured data information divided according to the page number are divided according to topic type Structured data information.
3. setting the exam the time the method according to claim 1, wherein being reached in the standard time of the client When, after open answer permission further include:
The server-side time is reacquired every set time period T, judges the server-side time and the client Whether the standard time is consistent;
When judging result is inconsistent, the standard time of the client is adjusted according to the server-side time.
4. setting the exam the time the method according to claim 1, wherein being reached in the standard time of the client When, after open answer permission further include:
When detect candidate exit exam software lay equal stress on new login exam software when, obtain the last client time and The last fiducial time simultaneously judges whether the two is consistent;
When judging result is inconsistent, the last client time is adjusted according to the last fiducial time It is whole.
5. according to the method described in claim 3, it is characterized by further comprising:
The client time CT2 of current period T and the client time CT1 in a upper period were obtained, the time in two periods is compared Difference △ T1=CT2-CT1-T, and compare the size of △ T1 and preset value;
The △ T1 is greater than preset value, is adjusted again to the client time, △ T=△ T1+ first time difference;
The time of the client of readjustment=CT2- △ T, using client time adjusted as the standard of the client Time.
6. setting the exam the time the method according to claim 1, wherein being reached in the standard time of the client When, after open answer permission further include:
The first examination question data of paper are obtained according to the structured data information, cache the first examination question data and according to default Exhibition strategy show the first examination question data;
The answer data of acquisition candidate and the answer progress msg, answer data are cached;
The second examination question data are requested to server according to the answer progress msg and structured data information, receives and caches described Second examination question data;
The second examination question data are shown according to the preset exhibition strategy, are received the answer data of candidate and are cached;
Server is uploaded in a manner of incremental transmission according to the answer data that preset upload strategy will be cached.
7. examining the time the method according to claim 1, wherein reaching to close in the standard time of the client When, withdraw answer permission further include:
Standard time of the client, which reaches, closes when examining the time, and the exam software withdraws the answer permission of whole candidates, And examination paper is uniformly collected.
8. a kind of time synchronism apparatus characterized by comprising
It obtains module: being configured as logging in exam software, obtain the structured data information of paper and acquisition and store client The client of the time t1 and server-side record that log in exam software log in the time t2 of exam software;
Determining module: the first time difference of the client time Yu the server-side time are configured to determine that;
Adjustment module: being configured as being adjusted the client time according to the first time difference, and will be after adjustment Standard time of the client time as the client;
Open module: it is configured as when the standard time arrival of the client sets the exam the time, open answer permission;
Recovering modules: it is configured as withdrawing answer permission when the standard time arrival of the client closes and examines the time.
9. device according to claim 8, which is characterized in that the structured data information includes:
The structured data information divided according to topic serial number or the structured data information divided according to the page number are divided according to topic type Structured data information.
10. device according to claim 8, which is characterized in that the open module further include:
First open cell: it is configured as reacquiring the server-side time every set time period T, judges the service Hold the time whether consistent with the standard time of the client;
Second open cell: it is configured as when judging result is inconsistent, according to the server-side time to the client Standard time be adjusted.
11. device according to claim 8, which is characterized in that the open module further include:
Third open cell: be configured as when detect candidate exit exam software lay equal stress on new login exam software when, obtain The last client time and the last fiducial time simultaneously judge whether the two is consistent;
4th open cell: it is configured as when judging result is inconsistent, according to the last fiducial time to nearest one Secondary client time is adjusted.
12. device according to claim 10, which is characterized in that the open module further include:
5th open cell: it is configured as obtaining the client time CT2 of current period T and the client time in a upper period CT1, compares the time difference △ T1=CT2-CT1-T in two periods, and compares the size of △ T1 and preset value;
6th open cell: the △ T1 is configured as greater than preset value, the client time is adjusted again, △ T =△ T1+ first time difference;
7th open cell: it is configured as the time=CT2- △ T for the client readjusted, by client time adjusted Standard time as the client.
13. device according to claim 8, which is characterized in that the open module further include:
Display unit: it is configured as obtaining the first examination question data of paper, caching described first according to the structured data information Examination question data simultaneously show the first examination question data according to preset exhibition strategy;
Answer unit: it is configured as obtaining the answer data of candidate and the answer progress msg, answer data is delayed It deposits;
The acquisition module is additionally configured to request second to server according to the answer progress msg and structured data information Examination question data receive and cache the second examination question data;
The display unit is additionally configured to show the second examination question data according to the preset exhibition strategy;
The answer unit is additionally configured to receive the answer data of candidate and cache;
Uploading unit: it is configured as being uploaded in a manner of incremental transmission according to the answer data that preset upload strategy will be cached To server.
14. device according to claim 8, which is characterized in that the recovering modules are configured to:
Standard time of the client, which reaches, closes when examining the time, and the exam software withdraws the answer permission of whole candidates, And examination paper is uniformly collected.
15. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, which is characterized in that the processor realizes the step of claim 1-7 any one the method when executing described instruction Suddenly.
16. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor The step of claim 1-7 any one the method is realized when row.
CN201811026429.2A 2018-09-04 2018-09-04 Time synchronization method and device, computing equipment and storage medium Active CN109189147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811026429.2A CN109189147B (en) 2018-09-04 2018-09-04 Time synchronization method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811026429.2A CN109189147B (en) 2018-09-04 2018-09-04 Time synchronization method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109189147A true CN109189147A (en) 2019-01-11
CN109189147B CN109189147B (en) 2021-12-24

Family

ID=64914270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811026429.2A Active CN109189147B (en) 2018-09-04 2018-09-04 Time synchronization method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109189147B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111539856A (en) * 2020-04-24 2020-08-14 上海好学网络科技有限公司 Examination system and method based on tablet computer

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790805A (en) * 1996-04-23 1998-08-04 Ncr Corporation Distributed timer synchronization
US6311283B1 (en) * 1998-09-17 2001-10-30 Apple Computer, Inc. Need based synchronization of computer system time clock to reduce loading on network server
CN1794855A (en) * 2005-06-27 2006-06-28 华为技术有限公司 Method and device synchronous operating time in equipment management
CN101515410A (en) * 2009-03-27 2009-08-26 重庆市第四十二中学校 Examination system
CN101621531A (en) * 2008-06-30 2010-01-06 国际商业机器公司 Limited task is carried out the apparatus and method of time control
EP2341649A1 (en) * 2010-01-04 2011-07-06 Alcatel Lucent Frequency synchronization method and system in a communication network
JP2011176768A (en) * 2010-02-25 2011-09-08 Nippon Telegr & Teleph Corp <Ntt> Push-type time distribution device, time synchronization server, and time synchronization client
CN106097205A (en) * 2016-06-28 2016-11-09 青岛理工大学 A kind of Computer Examination data Double buffer method based on cloud framework
CN106971357A (en) * 2017-03-21 2017-07-21 广州网才信息技术有限公司 A kind of On-line Examining system and its examination data processing method
CN107170313A (en) * 2016-03-07 2017-09-15 北京竞业达数码科技有限公司 A kind of wechat online simulation examination device and its method
CN107613012A (en) * 2017-09-27 2018-01-19 北京汇英添力科技有限公司 A kind of multiple terminals synchronizing web pages clocking method and system
CN108200220A (en) * 2018-04-08 2018-06-22 武汉斗鱼网络科技有限公司 A kind of method of data synchronization, server and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790805A (en) * 1996-04-23 1998-08-04 Ncr Corporation Distributed timer synchronization
US6311283B1 (en) * 1998-09-17 2001-10-30 Apple Computer, Inc. Need based synchronization of computer system time clock to reduce loading on network server
CN1794855A (en) * 2005-06-27 2006-06-28 华为技术有限公司 Method and device synchronous operating time in equipment management
CN101621531A (en) * 2008-06-30 2010-01-06 国际商业机器公司 Limited task is carried out the apparatus and method of time control
CN101515410A (en) * 2009-03-27 2009-08-26 重庆市第四十二中学校 Examination system
EP2341649A1 (en) * 2010-01-04 2011-07-06 Alcatel Lucent Frequency synchronization method and system in a communication network
JP2011176768A (en) * 2010-02-25 2011-09-08 Nippon Telegr & Teleph Corp <Ntt> Push-type time distribution device, time synchronization server, and time synchronization client
CN107170313A (en) * 2016-03-07 2017-09-15 北京竞业达数码科技有限公司 A kind of wechat online simulation examination device and its method
CN106097205A (en) * 2016-06-28 2016-11-09 青岛理工大学 A kind of Computer Examination data Double buffer method based on cloud framework
CN106971357A (en) * 2017-03-21 2017-07-21 广州网才信息技术有限公司 A kind of On-line Examining system and its examination data processing method
CN107613012A (en) * 2017-09-27 2018-01-19 北京汇英添力科技有限公司 A kind of multiple terminals synchronizing web pages clocking method and system
CN108200220A (en) * 2018-04-08 2018-06-22 武汉斗鱼网络科技有限公司 A kind of method of data synchronization, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王烨: "在线考试系统的分析与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111539856A (en) * 2020-04-24 2020-08-14 上海好学网络科技有限公司 Examination system and method based on tablet computer

Also Published As

Publication number Publication date
CN109189147B (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US10930281B2 (en) Method, apparatus and system for testing intelligent voice device
US20200036611A1 (en) Method and apparatus for warning
CN109657937A (en) A kind of Reliability Assessment and life-span prediction method based on degraded data
CN109218418A (en) Method of data synchronization and device calculate equipment and storage medium
CN102843511A (en) Image-related handling support system, information processing apparatus, and image-related handling support method
US10376245B2 (en) Information processing device, information processing method, and information processing program
CN104427402A (en) Wireless network stream media quality acquisition method and system
CN103220120A (en) Time synchronizing method of mobile terminal, mobile terminal and time synchronizing system
CN109144858A (en) Fluency detection method, calculates equipment and storage medium at device
CN109189147A (en) Method for synchronizing time and device calculate equipment and storage medium
US20180288636A1 (en) A method for automatic measurement of App load power consumption on mobile devices based on physical measurement
CN109831518A (en) A kind of map datum method for down loading and device calculate equipment and storage medium
CN103577660A (en) Gray scale experiment system and method
CN115757150A (en) Production environment testing method, device, equipment and storage medium
CN111930614A (en) Automatic testing method, device, equipment and medium
CN112241417B (en) Page data verification method and device, medium and electronic equipment
CN106445761A (en) Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
CN109829550A (en) Model evaluation method and apparatus, model evaluation system and its training method and device
CN112905457A (en) Software testing method and device
CN112785000A (en) Machine learning model training method and system for large-scale machine learning system
JP2021099781A (en) Method of increasing or decreasing number of workers and inspectors in crowdsourcing-based project for creating artificial intelligence learning data
JP7244466B2 (en) Work unit price adjustment method according to work progress speed of crowdsourcing platform project
CN115037655B (en) Pressure measurement method and system
CN104427526B (en) A kind of terminal traffic channel test method and comprehensive test instrument
CN115562996A (en) Data processing method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Units F01-03 and 05-10 on the 6th floor of No.1 Building, No.8 Courtyard, Guangshun South Street, Chaoyang District, Beijing

Applicant after: Beijing Ape Power Future Technology Co.,Ltd.

Address before: Units F01-03 and 05-10 on the 6th floor of No.1 Building, No.8 Courtyard, Guangshun South Street, Chaoyang District, Beijing

Applicant before: BEIJING FENBI WEILAI TECHNOLOGY CO.,LTD.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200506

Address after: 100102 unit F01, 5th floor and unit 04, F01, 6th floor, building 1, yard 8, Guangshun South Street, Chaoyang District, Beijing

Applicant after: Beijing ape force Education Technology Co.,Ltd.

Address before: Units F01-03 and 05-10 on the 6th floor of No.1 Building, No.8 Courtyard, Guangshun South Street, Chaoyang District, Beijing

Applicant before: Beijing Ape Power Future Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100102 unit F01, 5th floor, building 1, yard 8, Guangshun South Street, Chaoyang District, Beijing

Patentee after: Beijing Ape Power Technology Co.,Ltd.

Address before: 100102 unit F01, 5th floor, building 1, yard 8, Guangshun South Street, Chaoyang District, Beijing

Patentee before: Beijing ape force Education Technology Co.,Ltd.