Logo Search packages:      
Sourcecode: mailcrypt version File versions  Download package

def watcher::Watcher::received (   self )
Return a list of tuples (dstmsg, latency), where latency is in
seconds.

Definition at line 240 of file watcher.py.

                      :
        """Return a list of tuples (dstmsg, latency), where latency is in
        seconds."""
        received = []
        src, dst = self.msgs()
        for msgid in src.keys():
            if dst.has_key(msgid):
                txtime = src[msgid].time
                rxtime = dst[msgid].time
                received.append((dst[msgid], rxtime - txtime))
        received.sort(lambda x,y: cmp(x[0].msgid, y[0].msgid))
        return received

Generated by  Doxygen 1.6.0   Back to index