Skip to content
Snippets Groups Projects
Commit d82d071b authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

display computation time

parent df4c533c
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@ import solver as Solver
import beyn as Beyn
import numpy as np
import args as args
import time as timer
# Start timer
tStart = timer.time()
# Parse arguments
arg = args.parse()
......@@ -58,7 +62,11 @@ for i in range(l.shape[0]):
operator.view(V[:, i], "cim" + str(i) + ".pos")
if(not arg.quiet): print " # View: " + str(i) + " done!"
# Stop timer
tStop = timer.time()
# Done
if(not arg.quiet):
print
print "Elapsed time: " + str(round(tStop - tStart)) + "s"
print "Bye!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment