Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
getdp
cim
Commits
d397b634
Commit
d397b634
authored
7 years ago
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
display computation time
parent
e00cc997
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/cim.py
+8
-0
8 additions, 0 deletions
bin/cim.py
with
8 additions
and
0 deletions
bin/cim.py
+
8
−
0
View file @
d397b634
...
@@ -12,6 +12,10 @@ import solver as Solver
...
@@ -12,6 +12,10 @@ import solver as Solver
import
beyn
as
Beyn
import
beyn
as
Beyn
import
numpy
as
np
import
numpy
as
np
import
args
as
args
import
args
as
args
import
time
as
timer
# Start timer
tStart
=
timer
.
time
()
# Parse arguments
# Parse arguments
arg
=
args
.
parse
()
arg
=
args
.
parse
()
...
@@ -58,7 +62,11 @@ for i in range(l.shape[0]):
...
@@ -58,7 +62,11 @@ for i in range(l.shape[0]):
operator
.
view
(
V
[:,
i
],
"
cim
"
+
str
(
i
)
+
"
.pos
"
)
operator
.
view
(
V
[:,
i
],
"
cim
"
+
str
(
i
)
+
"
.pos
"
)
if
(
not
arg
.
quiet
):
print
"
# View:
"
+
str
(
i
)
+
"
done!
"
if
(
not
arg
.
quiet
):
print
"
# View:
"
+
str
(
i
)
+
"
done!
"
# Stop timer
tStop
=
timer
.
time
()
# Done
# Done
if
(
not
arg
.
quiet
):
if
(
not
arg
.
quiet
):
print
print
print
"
Elapsed time:
"
+
str
(
round
(
tStop
-
tStart
))
+
"
s
"
print
"
Bye!
"
print
"
Bye!
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment