Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def getModuleUniqueTimestamp():
    global TIMESTAMP_LOCK
    global LAST_TIMESTAMP
    TIMESTAMP_LOCK.acquire()
    timestamp = None
    try:
        from datetime import datetime
        while True:
            timestamp = datetime.utcnow()
            if timestamp != LAST_TIMESTAMP:
                LAST_TIMESTAMP = timestamp
                break
            else:
                from time import sleep
                sleep(.001)
    finally:
        TIMESTAMP_LOCK.release()
    return timestamp
        


src/p/y/pyphant1-HEAD/src/pyphant/pyphant/core/DataContainer.py   pyphant1(Download)
            else:
                self.hash = self.generateHash()
                self.timestamp = Helpers.getModuleUniqueTimestamp()
                self.id = u"emd5://%s/%s/%s/%s.%s" % (
                    self.machine,

src/p/y/pyphant-1.0b3/pyphant/core/DataContainer.py   pyphant(Download)
            else:
                self.hash = self.generateHash()
                self.timestamp = Helpers.getModuleUniqueTimestamp()
                self.id = u"emd5://%s/%s/%s/%s.%s" % (self.machine,
                                                      self.creator,