Salome HOME
projects
/
tools
/
eficas.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PN
[tools/eficas.git]
/
Misc
/
timing.py
1
# -*- coding: utf-8 -*-
2
import time
3
f=open('timing.out','w')
4
temps={}
5
6
def debut(event):
7
#temps[event]=time.clock()
8
temps[event]=time.time()
9
10
def fin(event):
11
#temps[event]=time.clock()-temps[event]
12
temps[event]=time.time()-temps[event]
13
f.write("%s %.4f\n"%(event,temps[event]))