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

display computation time

parent e00cc997
Branches
Tags
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.
Please register or to comment