Commit 09bd6bbb authored by lode_leroy's avatar lode_leroy

add timing

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@66 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 182dd911
#!/usr/bin/python
import sys
import sys, time
sys.path.insert(0,'.')
from pycam.Importers import STLImporter
from pycam.Gui.Visualization import ShowTestScene
model = STLImporter.ImportModel("Samples/STL/SampleScene.stl")
ShowTestScene(model)
if len(sys.argv)>1:
filename = sys.argv[1]
else:
filename = "Samples/STL/TestModel.stl"
start = time.clock()
model = STLImporter.ImportModel(filename)
end = time.clock()
print "time=", (end-start)
#ShowTestScene(model)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment