show copy duration

This commit is contained in:
David Vierra 2010-11-13 02:51:13 -10:00
parent 685c282feb
commit 9dab0abbc2

View File

@ -2754,6 +2754,7 @@ class MCInfdevOldLevel(MCLevel):
sourceBox, destinationPoint = self.adjustCopyParameters(sourceLevel, sourceBox, destinationPoint)
#needs work xxx
info( u"Copying {0} blocks from {1} to {2}" .format (ly*lz*lx,sourceBox, destinationPoint) )
startTime = datetime.now()
blocksCopied = 0
if(not isinstance(sourceLevel, MCInfdevOldLevel)):
@ -2788,6 +2789,7 @@ class MCInfdevOldLevel(MCLevel):
blocksCopied += 1;
self.copyEntitiesFrom(sourceLevel, sourceBox, destinationPoint)
info( "Duration: {0}".format(datetime.now()-startTime) )
info( u"Blocks copied: %d" % blocksCopied )
#self.saveInPlace()