# mceditlib.test.time_fill — mceditlib 0.1 documentation

### Navigation

- index
- modules |
- mceditlib 0.1 documentation »
- Module code »

# Source code for mceditlib.test.time_fill

    from mceditlib.util import exhaust
    from templevel import TempLevel
    import logging
    logging.basicConfig(level=logging.INFO)

    def timeFill():
        temp = TempLevel("AnvilWorld")
        editor = temp
        dim = editor.getDimension()
        editor.loadedChunkLimit = 1
        exhaust(dim.fillBlocksIter(dim.bounds, editor.blocktypes.OakWoodPlanks))

    if __name__ == "__main__":
        import timeit
        print "Filled in %.02f" % (timeit.timeit(timeFill, number=1))

### Navigation

- index
- modules |
- mceditlib 0.1 documentation »
- Module code »