'Check a time synchronization of hosts with current time
:param hosts: set of hosts to check. in the format of:
set([(\'127.0.0.1\', 6020), (\'127.0.0.2\', 6030)])'

def time_check(self, hosts):

    matches = 0
    errors = 0
    recon = Scout('time', self.verbose, self.suppress_errors, self.timeout)
    print(('[%s]    Checking    time-sync' % self._ptime()))
    for (url, ts_remote, status, ts_start, ts_end) in self.pool.imap(recon.scout, hosts):
        if (status != 200):
            errors = (errors + 1)
            continue
        if ((ts_remote < ts_start) or (ts_remote > ts_end)):
            diff = abs((ts_end - ts_remote))
            ts_end_f = self._ptime(ts_end)
            ts_remote_f = self._ptime(ts_remote)
            print(('!!    %s    current    time    is    %s,    but    remote    is    %s,    differs    by    %.2f    sec' % (url, ts_end_f, ts_remote_f, diff)))
            continue
        matches += 1
        if self.verbose:
            print(('->    %s    matches.' % url))
    print(('%s/%s    hosts    matched,    %s    error[s]    while    checking    hosts.' % (matches, len(hosts), errors)))
    print(('=' * 79))
