environment/lib/python2.7/site-packages/IPython/parallel/client/asyncresult.py
def elapsed(self):
        """elapsed time since initial submission"""
        if self.ready():
            return self.wall_time
        
        now = submitted = datetime.now()
        for msg_id in self.msg_ids:
            if msg_id in self._client.metadata:
                stamp = self._client.metadata[msg_id]['submitted']
                if stamp and stamp < submitted:
                    submitted = stamp
        return _total_seconds(now-submitted)
def elapsed(self):
        if self.ready():
            return self.wall_time
        
        now = submitted = datetime.now()
        for msg_id in self.msg_ids:
            if msg_id in self._client.metadata:
                stamp = self._client.metadata[msg_id]['submitted']
                if stamp and stamp < submitted:
                    submitted = stamp
        return _total_seconds(now-submitted)
def elapsed ( self ) : if self . ready ( ) : return self . wall_time now = submitted = datetime . now ( ) for msg_id in self . msg_ids : if msg_id in self . _client . metadata : stamp = self . _client . metadata [ msg_id ] [ 'submitted' ] if stamp and stamp < submitted : submitted = stamp return _total_seconds ( now - submitted )
elapsed time since initial submission
elapsed time since initial submission