parameters: (self, description)
return_statement: return 1
docstring: synchronize(self, string description)
  
          Call this function from time to time to synchronize watches
          with the server.  This initiates a round-trip transaction;
          when the transaction completes, the time will be synced.
  
          The description is the string that will be written to the log
          file regarding the reason for this synchronization attempt.
  
          The return value is true if the attempt is made, or false if
          it is too soon since the last attempt.
docstring_summary: synchronize(self, string description)
docstring_tokens: synchronize ( self string description )
function: def synchronize(self, description):
          """synchronize(self, string description)
  
          Call this function from time to time to synchronize watches
          with the server.  This initiates a round-trip transaction;
          when the transaction completes, the time will be synced.
  
          The description is the string that will be written to the log
          file regarding the reason for this synchronization attempt.
  
          The return value is true if the attempt is made, or false if
          it is too soon since the last attempt.
          """
          now = ClockObject.getGlobalClock().getRealTime()
  
          if now - self.lastAttempt < self.minWait:
              self.notify.debug("Not resyncing (too soon): %s" % (description))
              return 0
  
          self.talkResult = 0
          self.thisContext = self.nextContext
          self.attemptCount = 0
          self.nextContext = (self.nextContext + 1) & 255
          self.notify.info("Clock sync: %s" % (description))
          self.start = now
          self.lastAttempt = now
          self.sendUpdate("requestServerTime", [self.thisContext])
  
          return 1
function_tokens: def synchronize ( self , description ) : now = ClockObject . getGlobalClock ( ) . getRealTime ( ) if now - self . lastAttempt < self . minWait : self . notify . debug ( "Not resyncing (too soon): %s" % ( description ) ) return 0 self . talkResult = 0 self . thisContext = self . nextContext self . attemptCount = 0 self . nextContext = ( self . nextContext + 1 ) & 255 self . notify . info ( "Clock sync: %s" % ( description ) ) self . start = now self . lastAttempt = now self . sendUpdate ( "requestServerTime" , [ self . thisContext ] ) return 1